From 438de1ff41cc9055fdd42e1b41eb378f97fd648d Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sun, 13 Oct 2019 02:40:05 +0000 Subject: [PATCH] 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 --- .../rest-api/endpoints/class-wp-rest-terms-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php index 6783ea9808..5b0f84578b 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php @@ -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 ) );