[wp-trac] [WordPress Trac] #59420: Remove unused variables on the wp-includes folder.

WordPress Trac noreply at wordpress.org
Thu Sep 21 12:17:56 UTC 2023


#59420: Remove unused variables on the wp-includes folder.
--------------------------+-------------------------------
 Reporter:  upadalavipul  |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.4
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:  coding-standards
--------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56645" 56645]:
 {{{
 #!CommitTicketReference repository="" revision="56645"
 REST API: Remove unused variable in
 `WP_REST_Server::match_request_to_handler()`.

 Previously initialized in `WP_REST_Server::dispatch()`, the `$response`
 variable became unused when the logic was split into two new methods,
 `::match_request_to_handler()` and `::respond_to_request()`.

 Follow-up to [34928], [48947].

 Props upadalavipul, mukesh27.
 Fixes #59420.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59420#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list