mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-04 10:37:43 +02:00
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:
parent
fe549286d5
commit
1ad7538792
@ -2292,7 +2292,7 @@ function plugin_sandbox_scrape( $plugin ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
|
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
|
||||||
include WP_PLUGIN_DIR . '/' . $plugin;
|
include_once WP_PLUGIN_DIR . '/' . $plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-alpha-50787';
|
$wp_version = '5.8-alpha-50788';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user