Ticket #12089: 12089-extra.diff
File 12089-extra.diff, 598 bytes (added by , 15 years ago) |
---|
-
wp-admin/plugins.php
155 155 } 156 156 157 157 @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); 159 163 do_action('activate_' . $plugin); 160 164 exit; 161 165 break;