WordPress.org

Make WordPress Core

Changeset 12546


Ignore:
Timestamp:
12/26/09 09:00:58 (4 years ago)
Author:
azaozz
Message:

Remove unused .fade CSS class, props nacin, fixes #11628

Location:
trunk
Files:
27 edited

Legend:

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

    r12467 r12546  
    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; ?> 
  • trunk/wp-admin/custom-header.php

    r12524 r12546  
    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> 
  • trunk/wp-admin/edit-comments.php

    r12461 r12546  
    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 ) { 
  • trunk/wp-admin/edit-form-advanced.php

    r12406 r12546  
    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"> 
  • trunk/wp-admin/edit-link-categories.php

    r12317 r12546  
    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; ?> 
  • trunk/wp-admin/edit-link-form.php

    r11815 r12546  
    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 
  • trunk/wp-admin/edit-page-form.php

    r12406 r12546  
    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 
  • trunk/wp-admin/edit-pages.php

    r12375 r12546  
    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'] ) ); 
     
    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; ?> 
  • trunk/wp-admin/edit-tag-form.php

    r12228 r12546  
    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; 
  • trunk/wp-admin/edit-tags.php

    r12444 r12546  
    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; ?> 
  • trunk/wp-admin/edit.php

    r12390 r12546  
    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'] ) ); 
  • trunk/wp-admin/link-manager.php

    r12515 r12546  
    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); 
  • trunk/wp-admin/media.php

    r12543 r12546  
    7777        case 'updated' : 
    7878            $message = __('Media attachment updated.'); 
    79             $class = 'updated fade'; 
     79            $class = 'updated'; 
    8080            break; 
    8181        endswitch; 
  • trunk/wp-admin/options-head.php

    r8645 r12546  
    1414 
    1515<?php if (isset($_GET['updated'])) : ?> 
    16 <div id="message" class="updated fade"><p><strong><?php _e('Settings saved.') ?></strong></p></div> 
     16<div id="message" class="updated"><p><strong><?php _e('Settings saved.') ?></strong></p></div> 
    1717<?php endif; ?> 
  • trunk/wp-admin/options-permalink.php

    r12264 r12546  
    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 ) 
  • trunk/wp-admin/options-reading.php

    r12101 r12546  
    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!'); ?> 
  • trunk/wp-admin/plugin-editor.php

    r12310 r12546  
    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) ) { ?> 
  • trunk/wp-admin/plugins.php

    r12383 r12546  
    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) ) { ?> 
     
    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 
  • trunk/wp-admin/press-this.php

    r12371 r12546  
    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 
  • trunk/wp-admin/theme-editor.php

    r12541 r12546  
    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 
  • trunk/wp-admin/themes.php

    r12231 r12546  
    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 
  • trunk/wp-admin/update-core.php

    r12523 r12546  
    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>'; 
  • trunk/wp-admin/upload.php

    r12377 r12546  
    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 
  • trunk/wp-admin/user-edit.php

    r11930 r12546  
    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 ) : ?> 
  • trunk/wp-admin/users.php

    r12231 r12546  
    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        } 
  • trunk/wp-admin/widgets.php

    r12360 r12546  
    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']]) ) { ?> 
  • trunk/wp-content/themes/default/functions.php

    r12180 r12546  
    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'> 
Note: See TracChangeset for help on using the changeset viewer.