Plugin activation attempt goes through a function to show the same errors as the test. props miqrogroove. fixes #12089
git-svn-id: http://svn.automattic.com/wordpress/trunk@13452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b36063b03c
commit
fcb5acb7e5
|
@ -155,7 +155,11 @@ if ( !empty($action) ) {
|
|||
}
|
||||
|
||||
@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
|
||||
include(WP_PLUGIN_DIR . '/' . $plugin);
|
||||
// Go back to "sandbox" scope so we get the same errors as before
|
||||
function plugin_sandbox_scrape( $plugin ) {
|
||||
include( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
}
|
||||
plugin_sandbox_scrape( $plugin );
|
||||
do_action('activate_' . $plugin);
|
||||
exit;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue