[wp-trac] [WordPress Trac] #56481: Short-circuit HEAD methods in Core controllers

WordPress Trac noreply at wordpress.org
Tue Apr 8 13:03:09 UTC 2025


#56481: Short-circuit HEAD methods in Core controllers
---------------------------------------------+-----------------------------
 Reporter:  TimothyBlynJacobs                |       Owner:
                                             |  TimothyBlynJacobs
     Type:  task (blessed)                   |      Status:  closed
 Priority:  normal                           |   Milestone:  6.8
Component:  REST API                         |     Version:  4.7
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api,
                                             |  performance
---------------------------------------------+-----------------------------
Changes (by audrasjb):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60141" 60141]:
 {{{
 #!CommitTicketReference repository="" revision="60141"
 REST API: Fix hardcoded table name in `WP_Test_REST_Users_Controller`.

 This changeset fixes failing unit tests on the Hosting test suite because
 of the hardcoded table name in
 `WP_Test_REST_Users_Controller::test_get_items_only_fetches_ids_for_head_requests`.

 Props antonvlasenko, desrosj.
 Fixes #56481.
 }}}

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


More information about the wp-trac mailing list