[wp-trac] [WordPress Trac] #17761: wp-activate.php fails to load properly

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 11 02:44:20 UTC 2011


#17761: wp-activate.php fails to load properly
--------------------------+------------------
 Reporter:  frumph        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.2
Component:  General       |     Version:  3.2
 Severity:  blocker       |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by nacin):

 WP_INSTALLING is defined in five situations:
  1. wp-activate.php, unsure original reason, but it prevents non-network
 plugins (plugins on the main site) from loading
  2. wp-admin/install.php - initial installation
  3. wp-admin/setup-config.php - config file creation
  4. wp-admin/upgrade.php - DB upgrades
  5. wp-includes/ms-functions.php - wpmu_create_blog()

 This is a bit of hack, but we could introduce a new WP_ACTIVATING constant
 that is checked against:

 `if ( ! defined( 'WP_INSTALLING' ) || defined( 'WP_ACTIVATING' ) ) {`

 Since WP_INSTALLING is normally not going to be defined, this doesn't add
 any more overhead to typical pages, only on installing pages, which are
 already heavy. But it'll prevent an issue on activation.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17761#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list