WordPress.org

Make WordPress Core

Ticket #11628: 11628-fade.diff

File 11628-fade.diff, 22.3 KB (added by nacin, 8 years ago)
  • wp-admin/categories.php

     
    141141
    142142<?php
    143143if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
    144 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
     144<div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div>
    145145<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    146146endif; ?>
    147147
  • wp-admin/custom-header.php

     
    268268         */
    269269        function step_1() {
    270270                if ( $_GET['updated'] ) { ?>
    271 <div id="message" class="updated fade">
     271<div id="message" class="updated">
    272272<p><?php _e('Header updated.') ?></p>
    273273</div>
    274274                <?php } ?>
  • wp-admin/edit-comments.php

     
    135135        $unspammed = isset($_GET['unspammed']) ? (int) $_GET['unspammed'] : 0;
    136136
    137137        if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 ) {
    138                 echo '<div id="moderated" class="updated fade"><p>';
     138                echo '<div id="moderated" class="updated"><p>';
    139139
    140140                if ( $approved > 0 ) {
    141141                        printf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
  • wp-admin/edit-form-advanced.php

     
    136136<div id="notice" class="error"><p><?php echo $notice ?></p></div>
    137137<?php endif; ?>
    138138<?php if ( $message ) : ?>
    139 <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
     139<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    140140<?php endif; ?>
    141141<form name="post" action="post.php" method="post" id="post">
    142142<?php
  • wp-admin/edit-link-categories.php

     
    6868</h2>
    6969
    7070<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
    71 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
     71<div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div>
    7272<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    7373endif; ?>
    7474
  • wp-admin/edit-link-form.php

     
    4242<h2><?php echo esc_html( $title ); ?></h2>
    4343
    4444<?php if ( isset( $_GET['added'] ) ) : ?>
    45 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
     45<div id="message" class="updated"><p><?php _e('Link added.'); ?></p></div>
    4646<?php endif; ?>
    4747
    4848<?php
  • wp-admin/edit-page-form.php

     
    108108<div id="notice" class="error"><p><?php echo $notice ?></p></div>
    109109<?php endif; ?>
    110110<?php if ( $message ) : ?>
    111 <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
     111<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    112112<?php endif; ?>
    113113
    114114<?php wp_nonce_field($nonce_action); ?>
  • wp-admin/edit-pages.php

     
    147147</h2>
    148148
    149149<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?>
    150 <div id="message" class="updated fade"><p>
     150<div id="message" class="updated"><p>
    151151<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
    152152        printf( _n( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
    153153        unset($_GET['updated']);
     
    180180<?php } ?>
    181181
    182182<?php if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
    183 <div id="message" class="updated fade"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit page'); ?></a></p></div>
     183<div id="message" class="updated"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit page'); ?></a></p></div>
    184184<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
    185185endif; ?>
    186186
  • wp-admin/edit-tag-form.php

     
    1414        wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
    1515
    1616if ( empty($tag_ID) ) { ?>
    17         <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
     17        <div id="message" class="updated"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
    1818<?php
    1919        return;
    2020}
  • wp-admin/edit-tags.php

     
    157157</h2>
    158158
    159159<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
    160 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
     160<div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div>
    161161<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    162162endif; ?>
    163163<div id="ajax-response"></div>
  • wp-admin/edit.php

     
    141141
    142142<?php
    143143if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
    144 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div>
     144<div id="message" class="updated"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div>
    145145<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
    146146endif; ?>
    147147
    148148<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?>
    149 <div id="message" class="updated fade"><p>
     149<div id="message" class="updated"><p>
    150150<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
    151151        printf( _n( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
    152152        unset($_GET['updated']);
  • wp-admin/link-manager.php

     
    7979
    8080<?php
    8181if ( isset($_GET['deleted']) ) {
    82         echo '<div id="message" class="updated fade"><p>';
     82        echo '<div id="message" class="updated"><p>';
    8383        $deleted = (int) $_GET['deleted'];
    8484        printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted);
    8585        echo '</p></div>';
  • wp-admin/media.php

     
    7676                switch ( $_GET['message'] ) :
    7777                case 'updated' :
    7878                        $message = __('Media attachment updated.');
    79                         $class = 'updated fade';
     79                        $class = 'updated';
    8080                        break;
    8181                endswitch;
    8282        }
  • wp-admin/options-head.php

     
    1313?>
    1414
    1515<?php if (isset($_GET['updated'])) : ?>
    16 <div id="message" class="updated fade"><p><strong><?php _e('Settings saved.') ?></strong></p></div>
    17 <?php endif; ?>
    18  No newline at end of file
     16<div id="message" class="updated"><p><strong><?php _e('Settings saved.') ?></strong></p></div>
     17<?php endif; ?>
  • wp-admin/options-permalink.php

     
    125125?>
    126126
    127127<?php if (isset($_POST['submit'])) : ?>
    128 <div id="message" class="updated fade"><p><?php
     128<div id="message" class="updated"><p><?php
    129129if ( $iis7_permalinks ) {
    130130        if ( $permalink_structure && ! $usingpi && ! $writable )
    131131                _e('You should update your web.config now');
  • wp-admin/options-reading.php

     
    4545        <li><?php printf("<label for='page_for_posts'>".__('Posts page: %s')."</label>", wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li>
    4646</ul>
    4747<?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?>
    48 <div id="front-page-warning" class="updated fade-ff0000">
     48<div id="front-page-warning" class="updated">
    4949        <p>
    5050                <?php _e('<strong>Warning:</strong> these pages should not be the same!'); ?>
    5151        </p>
  • wp-admin/plugin-editor.php

     
    123123
    124124        ?>
    125125<?php if (isset($_GET['a'])) : ?>
    126  <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
     126 <div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div>
    127127<?php elseif (isset($_GET['phperror'])) : ?>
    128  <div id="message" class="updated fade"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p>
     128 <div id="message" class="updated"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p>
    129129        <?php
    130130                if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?>
    131131        <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&amp;plugin=<?php echo esc_attr($file); ?>&amp;_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe>
  • wp-admin/plugins.php

     
    246246?>
    247247
    248248<?php if ( isset($_GET['error']) ) : ?>
    249         <div id="message" class="updated fade"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p>
     249        <div id="message" class="updated"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p>
    250250        <?php
    251251                if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
    252252        <iframe style="border:0" width="100%" height="70px" src="<?php echo admin_url('plugins.php?action=error_scrape&amp;plugin=' . esc_attr($plugin) . '&amp;_wpnonce=' . esc_attr($_GET['_error_nonce'])); ?>"></iframe>
     
    259259                delete_transient('plugins_delete_result'); //Delete it once we're done.
    260260
    261261                if ( is_wp_error($delete_result) ) : ?>
    262                 <div id="message" class="updated fade"><p><?php printf( __('Plugin could not be deleted due to an error: %s'), $delete_result->get_error_message() ); ?></p></div>
     262                <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>
    263263                <?php else : ?>
    264                 <div id="message" class="updated fade"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>
     264                <div id="message" class="updated"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>
    265265                <?php endif; ?>
    266266<?php elseif ( isset($_GET['activate']) ) : ?>
    267         <div id="message" class="updated fade"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div>
     267        <div id="message" class="updated"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div>
    268268<?php elseif (isset($_GET['activate-multi'])) : ?>
    269         <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div>
     269        <div id="message" class="updated"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div>
    270270<?php elseif ( isset($_GET['deactivate']) ) : ?>
    271         <div id="message" class="updated fade"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div>
     271        <div id="message" class="updated"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div>
    272272<?php elseif (isset($_GET['deactivate-multi'])) : ?>
    273         <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div>
     273        <div id="message" class="updated"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div>
    274274<?php endif; ?>
    275275
    276276<div class="wrap">
  • wp-admin/press-this.php

     
    542542        </div>
    543543        <div class="posting">
    544544                <?php if ( isset($posted) && intval($posted) ) { $post_ID = intval($posted); ?>
    545                 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div>
     545                <div id="message" class="updated"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div>
    546546                <?php } ?>
    547547
    548548                <div id="titlediv">
  • wp-admin/theme-editor.php

     
    107107
    108108        ?>
    109109<?php if (isset($_GET['a'])) : ?>
    110  <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
     110 <div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div>
    111111<?php endif;
    112112
    113113$description = get_file_description($file);
  • wp-admin/themes.php

     
    4646?>
    4747
    4848<?php if ( ! validate_current_theme() ) : ?>
    49 <div id="message1" class="updated fade"><p><?php _e('The active theme is broken.  Reverting to the default theme.'); ?></p></div>
     49<div id="message1" class="updated"><p><?php _e('The active theme is broken.  Reverting to the default theme.'); ?></p></div>
    5050<?php elseif ( isset($_GET['activated']) ) :
    5151                if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?>
    52 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings page</a> to configure them.'), admin_url('widgets.php') ); ?></p></div><?php
     52<div id="message2" class="updated"><p><?php printf(__('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings page</a> to configure them.'), admin_url('widgets.php') ); ?></p></div><?php
    5353                } else { ?>
    54 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php
     54<div id="message2" class="updated"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php
    5555                }
    5656        elseif ( isset($_GET['deleted']) ) : ?>
    57 <div id="message3" class="updated fade"><p><?php _e('Theme deleted.') ?></p></div>
     57<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>
    5858<?php endif; ?>
    5959
    6060<?php
  • wp-admin/update-core.php

     
    130130                _e('You have the latest version of WordPress. You do not need to upgrade');
    131131                echo '</h3>';
    132132        } else {
    133                 echo '<div class="updated fade"><p>';
     133                echo '<div class="updated"><p>';
    134134                _e('<strong>Important:</strong> before upgrading, please <a href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.');
    135135                echo '</p></div>';
    136136
  • wp-admin/upload.php

     
    216216}
    217217
    218218if ( !empty($message) ) { ?>
    219 <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
     219<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    220220<?php } ?>
    221221
    222222<ul class="subsubsub">
  • wp-admin/user-edit.php

     
    100100?>
    101101
    102102<?php if ( isset($_GET['updated']) ) : ?>
    103 <div id="message" class="updated fade">
     103<div id="message" class="updated">
    104104        <p><strong><?php _e('User updated.') ?></strong></p>
    105105        <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
    106106        <p><a href="users.php"><?php _e('&larr; Back to Authors and Users'); ?></a></p>
  • wp-admin/users.php

     
    202202                case 'del':
    203203                case 'del_many':
    204204                        $delete_count = isset($_GET['delete_count']) ? (int) $_GET['delete_count'] : 0;
    205                         $messages[] = '<div id="message" class="updated fade"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>';
     205                        $messages[] = '<div id="message" class="updated"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>';
    206206                        break;
    207207                case 'add':
    208                         $messages[] = '<div id="message" class="updated fade"><p>' . __('New user created.') . '</p></div>';
     208                        $messages[] = '<div id="message" class="updated"><p>' . __('New user created.') . '</p></div>';
    209209                        break;
    210210                case 'promote':
    211                         $messages[] = '<div id="message" class="updated fade"><p>' . __('Changed roles.') . '</p></div>';
     211                        $messages[] = '<div id="message" class="updated"><p>' . __('Changed roles.') . '</p></div>';
    212212                        break;
    213213                case 'err_admin_role':
    214214                        $messages[] = '<div id="message" class="error"><p>' . __('The current user&#8217;s role must have user editing capabilities.') . '</p></div>';
    215                         $messages[] = '<div id="message" class="updated fade"><p>' . __('Other user roles have been changed.') . '</p></div>';
     215                        $messages[] = '<div id="message" class="updated"><p>' . __('Other user roles have been changed.') . '</p></div>';
    216216                        break;
    217217                case 'err_admin_del':
    218218                        $messages[] = '<div id="message" class="error"><p>' . __('You can&#8217;t delete the current user.') . '</p></div>';
    219                         $messages[] = '<div id="message" class="updated fade"><p>' . __('Other users have been deleted.') . '</p></div>';
     219                        $messages[] = '<div id="message" class="updated"><p>' . __('Other users have been deleted.') . '</p></div>';
    220220                        break;
    221221                }
    222222        endif; ?>
  • wp-admin/widgets.php

     
    329329<h2><?php echo esc_html( $title ); ?></h2>
    330330
    331331<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
    332 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
     332<div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>
    333333<?php } ?>
    334334<?php if ( isset($_GET['error']) && isset($errors[$_GET['error']]) ) { ?>
    335335<div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div>
  • wp-content/themes/default/functions.php

     
    371371}
    372372
    373373function kubrick_theme_page() {
    374         if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';
     374        if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated"><p><strong>'.__('Options saved.').'</strong></p></div>';
    375375?>
    376376<div class='wrap'>
    377377        <h2><?php _e('Customize Header'); ?></h2>