[wp-trac] [WordPress Trac] #31761: register_activation_hook doesn't work for themes on Network Enable action

WordPress Trac noreply at wordpress.org
Thu Mar 26 00:12:12 UTC 2015


#31761: register_activation_hook doesn't work for themes on Network Enable action
--------------------------------+------------------------
 Reporter:  brainstormforce     |       Owner:
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Networks and Sites  |     Version:  4.1.1
 Severity:  normal              |  Resolution:  invalid
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Network Enabled themes are not the same as Network Activated Plugins.
 When a Theme is enabled, it's a flag that says "This theme can be used on
 your site", plugins it's "Enable this plugin over all sites".

 As "Enabled" Themes do not actually include any code on the site (even if
 network activated), there's no ability for them to add such menus.

 I'd say that if you need to add a network admin page, that perhaps part of
 your theme should actually be a plugin.

 Marking as invalid; for the simple reason that no code is included, as
 such no code can run & we can't really change that either.

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


More information about the wp-trac mailing list