Docs: Correct comment typo in WP_REST_Terms_Controller::update_item().
Props manikmist09. Fixes #48295. See #47110. git-svn-id: https://develop.svn.wordpress.org/trunk@46469 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cda19de292
commit
438de1ff41
@ -541,7 +541,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
|
||||
$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 ) ) {
|
||||
$update = wp_update_term( $term->term_id, $term->taxonomy, wp_slash( (array) $prepared_term ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user