[wp-trac] [WordPress Trac] #61593: Unused variables in wp-includes/rest-api/*.php files

WordPress Trac noreply at wordpress.org
Mon Jul 8 12:32:33 UTC 2024


#61593: Unused variables in wp-includes/rest-api/*.php files
----------------------------------------+-----------------------------
 Reporter:  antonvlasenko               |      Owner:  (none)
     Type:  enhancement                 |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  REST API                    |    Version:  trunk
 Severity:  minor                       |   Keywords:
  Focuses:  rest-api, coding-standards  |
----------------------------------------+-----------------------------
 After inspecting the code in the `wp-includes/rest-api/` files, the
 following minor issues have been identified:
 * unused variables;
 * incorrect `@return type` in the DocBlocks;
 * typos;
 * incorrect variable passed to the `wp_parse_str()` function in the
 `WP_Rest_Server::serve_batch_request_v1()` method.

 Affected classes and files:
 * `WP_REST_Attachments_Controller`;
 * `WP_REST_Block_Types_Controller`;
 * `WP_REST_Post_Statuses_Controller`;
 * `WP_REST_Posts_Controller`;
 * `WP_REST_Taxonomies_Controller`;
 * `WP_REST_Terms_Controller`;
 * `WP_REST_Themes_Controller`;
 * `WP_REST_URL_Details_Controller`;
 * `WP_REST_Widgets_Controller`;
 * `WP_REST_Post_Format_Search_Handler`;
 * `WP_REST_Post_Search_Handler`;
 * `WP_REST_Request`;
 * `WP_REST_Server`;
 * `rest-api.php`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61593>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list