[wp-trac] [WordPress Trac] #23197: wp-activate does not load plugins

WordPress Trac noreply at wordpress.org
Mon Jan 14 12:54:26 UTC 2013


#23197: wp-activate does not load plugins
-----------------------------+--------------------------
 Reporter:  radiok           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Multisite
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 I am the developer of a Wordpress plugin that modifies the Registration
 process.  I am porting my code to Wordpress Multisite and am running into
 an odd obstacle.  During the signup process, I store meta data in the
 signups table.  I intend to restore that data after the user has activated
 their account using hooks located in wp-activate.php.  I learned the hard
 way that wp-activate is altering the load sequence with the following
 flag.

 define( 'WP_INSTALLING', true );

 The preceding comment says "Define ABSPATH as this file's directory",
 which to me does not entirely jive up.  Regardless, with this flag in
 place, when Wordpress would normally determine what plugins to load in
 wp_get_active_and_valid_plugins, instead it returns an empty array.  I do
 not believe this is the desired behavior.

 My solution has to been to create a small "must-use" plugin simply for my
 activation related code.  This however, is not a desirable solution since
 must-use plugins must be manually installed.  I cannot determine much of
 an alternate solution; I cannot modify that flag in a plugin at any level
 since my plugin would never be loaded for it to get a chance to modify the
 flag.  It is a bit of a chicken and the egg problem.

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


More information about the wp-trac mailing list