WordPress.org

Make WordPress Core

Changeset 13452


Ignore:
Timestamp:
02/27/10 07:24:41 (6 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r13311 r13452  
    156156 
    157157            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. 
    158             include(WP_PLUGIN_DIR . '/' . $plugin); 
     158            // Go back to "sandbox" scope so we get the same errors as before 
     159            function plugin_sandbox_scrape( $plugin ) { 
     160                include( WP_PLUGIN_DIR . '/' . $plugin ); 
     161            } 
     162            plugin_sandbox_scrape( $plugin ); 
    159163            do_action('activate_' . $plugin); 
    160164            exit; 
Note: See TracChangeset for help on using the changeset viewer.