Ticket #36406: plugins.2.patch
File plugins.2.patch, 1.1 KB (added by , 8 years ago) |
---|
-
plugins.
old new 159 159 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 ); 160 160 } 161 161 162 $network_wide = isset( $_REQUEST['network_wide'] ) ? $_REQUEST[ 'network_wide' ] : false; 162 163 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. 163 164 // Go back to "sandbox" scope so we get the same errors as before 164 165 plugin_sandbox_scrape( $plugin ); 165 166 /** This action is documented in wp-admin/includes/plugin.php */ 166 do_action( "activate_{$plugin}" );167 do_action( "activate_{$plugin}", $network_wide ); 167 168 exit; 168 169 169 170 case 'deactivate': … … 451 452 'action' => 'error_scrape', 452 453 'plugin' => urlencode( $plugin ), 453 454 '_wpnonce' => urlencode( $_GET['_error_nonce'] ), 455 'network_wide' => is_network_admin(), 454 456 ), admin_url( 'plugins.php' ) ); 455 457 ?> 456 458 <iframe style="border:0" width="100%" height="70px" src="<?php echo esc_url( $iframe_url ); ?>"></iframe>