[wp-trac] [WordPress Trac] #14718: Plugins Not loaded on wp-activate.php in multisite mode

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 27 23:31:55 UTC 2010


#14718: Plugins Not loaded on wp-activate.php in multisite mode
--------------------------+-------------------------------------------------
 Reporter:  sbrajesh      |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  3.0.1          
 Severity:  major         |    Keywords:                 
--------------------------+-------------------------------------------------
 In wordpress 3.0/3.0.1 when the site is installed as network mode, none of
 the sitewide active plugins are loaded on the user activation page.

 A little test shows the problem is with the
 "wp_get_active_and_valid_plugins" function in the wp-includes/load.php

 It returns empty array if WP_INSTALLING is defined which is the case with
 the wp-activate.php.

 Changing line 470-471 from

 {{{
 if ( empty( $active_plugins ) || defined( 'WP_INSTALLING' ) )
                 return $plugins;
 }}}



 to

 {{{
 if ( empty( $active_plugins )  )
                 return $plugins;
 }}}

 solves it on the active installation.

 The above behavior is in contradiction with the wpmu 2.9.2 behavior where
 sitewide active plugins were loaded on the activation page.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14718>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list