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

WordPress Trac noreply at wordpress.org
Tue Mar 11 06:23:52 UTC 2025


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

Comment (by mehdi01):

 Thank You @TimothyBlynJacobs

 This makes sense for single-item routes. For collection routes, would
 returning only ids affect any existing filters or query modifications
 developers might be using? Also, would this change require adjustments in
 custom REST endpoints?

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


More information about the wp-trac mailing list