Make WordPress Core

Changeset 28646


Ignore:
Timestamp:
05/31/2014 08:09:26 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Plugin activation/deletion errors should be styled as such.

props johnbillion.
fixes #28260.

File:
1 edited

Legend:

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

    r28311 r28646  
    381381        $errmsg = __('Plugin could not be activated because it triggered a <strong>fatal error</strong>.');
    382382    ?>
    383     <div id="message" class="updated"><p><?php echo $errmsg; ?></p>
     383    <div id="message" class="error"><p><?php echo $errmsg; ?></p>
    384384    <?php
    385385        if ( !isset( $_GET['main'] ) && !isset($_GET['charsout']) && wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
     
    395395
    396396        if ( is_wp_error($delete_result) ) : ?>
    397         <div id="message" class="updated"><p><?php printf( __('Plugin could not be deleted due to an error: %s'), $delete_result->get_error_message() ); ?></p></div>
     397        <div id="message" class="error"><p><?php printf( __('Plugin could not be deleted due to an error: %s'), $delete_result->get_error_message() ); ?></p></div>
    398398        <?php else : ?>
    399399        <div id="message" class="updated"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>
Note: See TracChangeset for help on using the changeset viewer.