[wp-trac] [WordPress Trac] #49406: Introduce register_theme_support method
WordPress Trac
noreply at wordpress.org
Sun Jun 7 21:26:58 UTC 2020
#49406: Introduce register_theme_support method
--------------------------------------+-----------------------
Reporter: kadamwhite | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.5
Component: Themes | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Comment (by williampatton):
I haven't tested the patch but I gave it a quick pass over in the PR and
it looks good, nice suite of added tests :)
The shift of name for the function makes sense to me. You register the
_feature_ which becomes available and then theme can declare it has
support for it.
If this were a theme only feature I would mark this with `accept` however
I guess I should leave that to someone from REST component to accept it.
Looks real good to me though :D
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49406#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list