[wp-trac] [WordPress Trac] #31392: Undefined function error on mu-plugin during update/upgrade
WordPress Trac
noreply at wordpress.org
Thu Apr 2 06:39:16 UTC 2015
#31392: Undefined function error on mu-plugin during update/upgrade
-----------------------------+----------------------
Reporter: jadpm | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-----------------------------+----------------------
Changes (by jeremyfelt):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Hi jadpm, thanks for opening a ticket.
Standard plugins are not available during the upgrade process. When
`upgrade.php` is called, the `WP_INSTALLING` constant is defined and
`wp_get_active_and_valid_plugins()` will provide an empty array of plugins
so that the upgrade process can do its thing.
The best way around this is to add a check of your own in the mu-plugin
for `defined( 'WP_INSTALLING' )`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31392#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list