[wp-trac] [WordPress Trac] #28668: MU-plugins are loaded when doing a virgin install

WordPress Trac noreply at wordpress.org
Sun Jun 29 05:33:25 UTC 2014


#28668: MU-plugins are loaded when doing a virgin install
----------------------------+-----------------------------
 Reporter:  jrf             |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 I just noticed that I get a bunch of database errors when I do a virgin
 install of WordPress. The errors are caused by must-use plugins trying to
 get options and such while the database tables don't exist yet.

 I would suggest that for a virgin install - i.e. when WP detects an empty
 database and redirects to 'wp-admin/install.php' - the MU plugins (or any
 plugins for that matter) should not be loaded.

 I realize plugins could check for the 'WP_INSTALLING' constant, but as
 that's also set when an upgrade is run, this is not unique enough.

 To reproduce:
 * Set up an empty database
 * Unzip a copy of WP in a folder of your choice
 * Add a 'wp-content/mu-plugins' directory and put some plugins in it (for
 example the Yoast WPSEO plugin)
 * Add a filled in wp-config.php file and make sure 'WP_DEBUG' is set to
 'true'
 * Go to your site to watch the database errors fill your screen.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28668>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list