[wp-trac] [WordPress Trac] #50152: Return all themes into the themes REST API

WordPress Trac noreply at wordpress.org
Sun Jan 3 21:45:57 UTC 2021


#50152: Return all themes into the themes REST API
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.7
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests early       |     Focuses:  rest-api
  commit                                         |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

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


Comment:

 In [changeset:"49925" 49925]:
 {{{
 #!CommitTicketReference repository="" revision="49925"
 REST API: Expose all themes in the themes controller.

 Previously, only the active theme was made available. This commit allows
 for all themes to be queried if the user has the `switch_themes` or
 `manage_network_themes` capabilities.

 This commit also no longer exposes the `page`, `per_page`, `search` and
 `context` query parameters since they are not supported by this
 controller.

 Props spacedmonkey, lpawlik, TimothyBlynJacobs.
 Fixes #50152.
 }}}

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


More information about the wp-trac mailing list