[wp-trac] [WordPress Trac] #49406: Introduce register_theme_support method

WordPress Trac noreply at wordpress.org
Thu Jun 25 22:11:24 UTC 2020


#49406: Introduce register_theme_support method
--------------------------------------+--------------------------------
 Reporter:  kadamwhite                |       Owner:  TimothyBlynJacobs
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.5
Component:  Themes                    |     Version:  5.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48171" 48171]:
 {{{
 #!CommitTicketReference repository="" revision="48171"
 Themes: Introduce register_theme_feature API.

 Currently themes can declare support for a given feature by using
 add_theme_support(). This commit adds a register_theme_feature() API that
 allows plugins and WordPress Core to declare a list of available features
 that themes can support.

 The REST API uses this to expose a theme's supported features if the
 feature has been registered with "show_in_rest" set to true.

 Props kadamwhite, spacedmonkey, williampatton, desrosj, TimothyBlynJacobs.
 Fixes #49406.
 }}}

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


More information about the wp-trac mailing list