Plugins: When loading a plugin in a "sandbox" on activation, do it once.
This avoids a fatal error if the plugin is already included, e.g. in unit tests. Follow-up to [50787]. See #31104. Built from https://develop.svn.wordpress.org/trunk@50788 git-svn-id: http://core.svn.wordpress.org/trunk@50397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2292,7 +2292,7 @@ function plugin_sandbox_scrape( $plugin ) {
|
||||
}
|
||||
|
||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
include WP_PLUGIN_DIR . '/' . $plugin;
|
||||
include_once WP_PLUGIN_DIR . '/' . $plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user