#61593 closed enhancement (fixed)
Unused variables in wp-includes/rest-api/*.php files
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | minor | Version: | 6.6 |
Component: | REST API | Keywords: | has-patch |
Focuses: | rest-api, coding-standards | Cc: |
Description
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 theWP_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
.
Change History (8)
This ticket was mentioned in PR #6979 on WordPress/wordpress-develop by @antonvlasenko.
7 months ago
#1
- Keywords has-patch added
#2
@
7 months ago
- Milestone changed from Awaiting Review to 6.7
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/61593