[wp-trac] [WordPress Trac] #56481: Short-circuit HEAD methods in Core controllers
WordPress Trac
noreply at wordpress.org
Thu Mar 13 06:22:40 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
---------------------------------------------+-----------------------------
Comment (by Mamaduka):
I was reminded that the `HEAD` request still needs to adhere to user
permissions, which can be a roadblock to adopting this for the core data
`canUser` selector.
For example, `HEAD /wp/v2/settings` will return `401` for low-capability
users.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56481#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list