Make WordPress Core

Changeset 6627


Ignore:
Timestamp:
01/16/2008 04:46:49 PM (17 years ago)
Author:
ryan
Message:

Always show plugin activation errors. Props DD32. fixes #5673

File:
1 edited

Legend:

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

    r6626 r6627  
    1717        if ( is_wp_error($valid) )
    1818            wp_die($valid);
     19        error_reporting( E_ALL ^ E_NOTICE );
     20        @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
    1921        include(ABSPATH . PLUGINDIR . '/' . $plugin);
    2022    } elseif ( 'deactivate' == $_GET['action'] ) {
     
    4648    <?php
    4749        $plugin = trim($_GET['plugin']);
    48         if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) && 1 == strtolower(ini_get('display_errors'))) { ?>
     50        if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
    4951    <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&amp;plugin=<?php echo attribute_escape($plugin); ?>&amp;_wpnonce=<?php echo attribute_escape($_GET['_error_nonce']); ?>"></iframe>
    5052    <?php
Note: See TracChangeset for help on using the changeset viewer.