[wp-trac] [WordPress Trac] #56481: Short-circuit HEAD methods in Core controllers
WordPress Trac
noreply at wordpress.org
Fri Dec 6 00:30:19 UTC 2024
#56481: Short-circuit HEAD methods in Core controllers
--------------------------------------+------------------------------------
Reporter: TimothyBlynJacobs | Owner: TimothyBlynJacobs
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.8
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api, performance
--------------------------------------+------------------------------------
Comment (by TimothyBlynJacobs):
Yeah, I think we can commit basically this. Can you roll it into one patch
@antonvlasenko?
The only other thing, is I'd rather us pass the uppercase form of the
methods to the `is_method()`. That's what we use everywhere in the REST
API. I think it makes sense to allow someone to pass the lowercased named.
But I think Core should be consistent.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56481#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list