[wp-trac] [WordPress Trac] #30594: New function to network enable a theme

WordPress Trac noreply at wordpress.org
Thu Apr 14 03:39:47 UTC 2016


#30594: New function to network enable a theme
-------------------------------------+-------------------------------------
 Reporter:  igmoweb                  |       Owner:  jeremyfelt
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  4.6
Component:  Themes                   |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  administration,
  tests                              |  multisite
-------------------------------------+-------------------------------------
Changes (by jeremyfelt):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37202"]:
 {{{
 #!CommitTicketReference repository="" revision="37202"
 Multisite: Introduce `WP_Theme` methods to network enable/disable themes.

 * `WP_Theme::network_enable_theme()` can be used to enable a theme or
 array of themes on a network.
 * `WP_Theme::network_disable_theme()` can be used to disable a theme or
 array of themes on a network.
 * Use these new methods in the network admin vs direct
 `update_site_option()` calls.
 * Add tests.

 Props igmoweb.
 Fixes #30594.
 }}}

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


More information about the wp-trac mailing list