Ticket #5673: 5673.2.diff
File 5673.2.diff, 1.3 KB (added by , 17 years ago) |
---|
-
wp-admin/plugins.php
14 14 $valid = validate_plugin($plugin); 15 15 if ( is_wp_error($valid) ) 16 16 wp_die($valid); 17 error_reporting( E_ALL ^ E_NOTICE ); 18 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. 17 19 include(ABSPATH . PLUGINDIR . '/' . $plugin); 18 20 } elseif ( 'deactivate' == $_GET['action'] ) { 19 21 check_admin_referer('deactivate-plugin_' . $_GET['plugin']); … … 43 45 <div id="message" class="updated fade"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p> 44 46 <?php 45 47 $plugin = trim($_GET['plugin']); 46 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) && 1 == strtolower(ini_get('display_errors'))) { ?>48 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?> 47 49 <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo attribute_escape($plugin); ?>&_wpnonce=<?php echo attribute_escape($_GET['_error_nonce']); ?>"></iframe> 48 50 <?php 49 51 }