mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Docs: Correct comment typo in WP_REST_Terms_Controller::update_item().
Props manikmist09. Fixes #48295. See #47110. Built from https://develop.svn.wordpress.org/trunk@46469 git-svn-id: http://core.svn.wordpress.org/trunk@46267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
41d6b80d03
commit
8730eb34e3
@ -541,7 +541,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
|||||||
|
|
||||||
$prepared_term = $this->prepare_item_for_database( $request );
|
$prepared_term = $this->prepare_item_for_database( $request );
|
||||||
|
|
||||||
// Only update the term if we haz something to update.
|
// Only update the term if we have something to update.
|
||||||
if ( ! empty( $prepared_term ) ) {
|
if ( ! empty( $prepared_term ) ) {
|
||||||
$update = wp_update_term( $term->term_id, $term->taxonomy, wp_slash( (array) $prepared_term ) );
|
$update = wp_update_term( $term->term_id, $term->taxonomy, wp_slash( (array) $prepared_term ) );
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-beta3-46468';
|
$wp_version = '5.3-beta3-46469';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user