Move `plugin_sandbox_scrape()` from `wp-admin/plugins.php` to `wp-admin/includes/plugin.php`.
See #33813. Built from https://develop.svn.wordpress.org/trunk@34018 git-svn-id: http://core.svn.wordpress.org/trunk@33987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f8d7a43920
commit
a1d949f361
|
@ -1948,3 +1948,11 @@ function wp_clean_plugins_cache( $clear_update_cache = true ) {
|
||||||
delete_site_transient( 'update_plugins' );
|
delete_site_transient( 'update_plugins' );
|
||||||
wp_cache_delete( 'plugins', 'plugins' );
|
wp_cache_delete( 'plugins', 'plugins' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $plugin
|
||||||
|
*/
|
||||||
|
function plugin_sandbox_scrape( $plugin ) {
|
||||||
|
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
|
||||||
|
include( WP_PLUGIN_DIR . '/' . $plugin );
|
||||||
|
}
|
|
@ -148,13 +148,6 @@ if ( $action ) {
|
||||||
|
|
||||||
@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
|
@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
|
||||||
// Go back to "sandbox" scope so we get the same errors as before
|
// Go back to "sandbox" scope so we get the same errors as before
|
||||||
/**
|
|
||||||
* @param string $plugin
|
|
||||||
*/
|
|
||||||
function plugin_sandbox_scrape( $plugin ) {
|
|
||||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
|
|
||||||
include( WP_PLUGIN_DIR . '/' . $plugin );
|
|
||||||
}
|
|
||||||
plugin_sandbox_scrape( $plugin );
|
plugin_sandbox_scrape( $plugin );
|
||||||
/** This action is documented in wp-admin/includes/plugin.php */
|
/** This action is documented in wp-admin/includes/plugin.php */
|
||||||
do_action( "activate_{$plugin}" );
|
do_action( "activate_{$plugin}" );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34017';
|
$wp_version = '4.4-alpha-34018';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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