echo '</div>';
require_once ABSPATH . 'wp-admin/admin-footer.php';
exit;
case 'error_scrape':
if ( !
current_user_can( 'activate_plugin',
$plugin ) ) { wp_die( __( 'Sorry, you are not allowed to activate this plugin.'
) );
} check_admin_referer( 'plugin-activation-error_' .
$plugin );
$valid =
validate_plugin( $plugin );
if ( is_wp_error( $valid ) ) { wp_die( $valid );
} if ( ! WP_DEBUG
) { error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR
);
} ini_set( 'display_errors', true
); // Ensure that fatal errors are displayed.
// Go back to "sandbox" scope so we get the same errors as before.
plugin_sandbox_scrape( $plugin );