From 3bd27422b1197988a2e971b15846e305adec883a Mon Sep 17 00:00:00 2001 From: Anton Vlasenko Date: Sat, 14 Dec 2024 02:13:01 +0100 Subject: [PATCH] Fix CS and typos. --- .../rest-api/endpoints/class-wp-rest-taxonomies-controller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php index fce49cf07f7cc..7052b2f39bc4c 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php @@ -113,9 +113,8 @@ public function get_items_permissions_check( $request ) { * @return WP_REST_Response Response object on success, or WP_Error object on failure. */ public function get_items( $request ) { - if ( $request->is_method( 'HEAD' ) ) { - // Return early as this method doesn't add any headers. + // Return early as this handler doesn't add any response headers. return new WP_REST_Response(); }