[wp-trac] [WordPress Trac] #56481: Short-circuit HEAD methods in Core controllers
WordPress Trac
noreply at wordpress.org
Sat Dec 7 17:12:13 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 antonvlasenko):
@TimothyBlynJacobs I've consolidated all the PRs into one, updated the
string cases passed to `is_method()` to uppercase, and added unit tests
for the `is_method()` method.
Thank you for the review!
PR: https://github.com/WordPress/wordpress-develop/pull/7970
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56481#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list