Plugin activation attempt goes through a function to show the same errors as the test. props miqrogroove. fixes #12089

git-svn-id: https://develop.svn.wordpress.org/trunk@13452 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2010-02-27 07:24:41 +00:00
parent 92c03dc898
commit 039b7de070

View File

@ -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;