Ticket #36406: plugins.patch
File plugins.patch, 1.2 KB (added by , 8 years ago) |
---|
-
.mensmaximus.com/htdocs/wp-admin/plugins.php
old new 158 158 if ( ! WP_DEBUG ) { 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 162 $network_wide = isset( $_REQUEST['network_wide'] ) ? $_REQUEST[ 'network_wide' ] : false; 161 163 162 164 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. 163 165 // Go back to "sandbox" scope so we get the same errors as before 164 166 plugin_sandbox_scrape( $plugin ); 165 167 /** This action is documented in wp-admin/includes/plugin.php */ 166 do_action( "activate_{$plugin}" );168 do_action( "activate_{$plugin}", $network_wide ); 167 169 exit; 168 170 169 171 case 'deactivate': … … 437 439 'action' => 'error_scrape', 438 440 'plugin' => urlencode( $plugin ), 439 441 '_wpnonce' => urlencode( $_GET['_error_nonce'] ), 442 'network_wide' => is_network_admin(), 440 443 ), admin_url( 'plugins.php' ) ); 441 444 ?> 442 445 <iframe style="border:0" width="100%" height="70px" src="<?php echo esc_url( $iframe_url ); ?>"></iframe>