WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/30/2010 03:37:46 PM (12 years ago)
Author:
nacin
Message:

Use a class for update-nag, as especially in MS we're sometimes hooking in more than one per page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r14318 r14319  
    367367    global $current_user;
    368368    if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) && isset( $_GET['updated'] ) && $email = get_option( $current_user->ID . '_new_email' ) )
    369         echo "<div id='update-nag'>" . sprintf( __( "Your email address has not been updated yet. Please check your inbox at %s for a confirmation email." ), $email['newemail'] ) . "</div>";
     369        echo "<div class='update-nag'>" . sprintf( __( "Your email address has not been updated yet. Please check your inbox at %s for a confirmation email." ), $email['newemail'] ) . "</div>";
    370370}
    371371add_action( 'admin_notices', 'new_user_email_admin_notice' );
     
    672672        $msg .= "<br/><br/><code>$out</code>";
    673673
    674         echo "<div id='update-nag'>$msg</div>";
     674        echo "<div class='update-nag'>$msg</div>";
    675675    }
    676676}
     
    703703        echo "<div class='updated'>$msg</div>";
    704704    } elseif ( is_super_admin() ) {
    705         printf( '<div id="update-nag">' . __( 'Your feed at %s is empty.' ) . '</div>', esc_html( $url ) );
     705        printf( '<div class="update-nag">' . __( 'Your feed at %s is empty.' ) . '</div>', esc_html( $url ) );
    706706    }
    707707}
     
    713713        return false;
    714714    if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version )
    715         echo "<div id='update-nag'>" . sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Update Network</a> page to update all your sites.' ), esc_url( admin_url( 'ms-upgrade-network.php' ) ) ) . "</div>";
     715        echo "<div class='update-nag'>" . sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Update Network</a> page to update all your sites.' ), esc_url( admin_url( 'ms-upgrade-network.php' ) ) ) . "</div>";
    716716}
    717717add_action( 'admin_notices', 'site_admin_notice' );
     
    786786    $mu_media_buttons = get_site_option( 'mu_media_buttons', array() );
    787787    if ( empty($mu_media_buttons['image']) && current_theme_supports( 'post-thumbnails' ) ) {
    788         echo "<div id='update-nag'>" . sprintf( __( "Warning! The current theme supports Featured Images. You must enable image uploads on <a href='%s'>the options page</a> for it to work." ), esc_url( admin_url( 'ms-options.php' ) ) ) . "</div>";
     788        echo "<div class='update-nag'>" . sprintf( __( "Warning! The current theme supports Featured Images. You must enable image uploads on <a href='%s'>the options page</a> for it to work." ), esc_url( admin_url( 'ms-options.php' ) ) ) . "</div>";
    789789    }
    790790}
     
    796796    if ( ! file_exists( WP_CONTENT_DIR . '/blogs.php' ) )
    797797        return;
    798     echo '<div id="update-nag">' . sprintf( __( 'The <code>%1$s</code> file is deprecated. Please remove it and update your server rewrite rules to use <code>%2$s</code> instead.' ), 'wp-content/blogs.php', 'wp-includes/ms-files.php' ) . '</div>';
     798    echo '<div class="update-nag">' . sprintf( __( 'The <code>%1$s</code> file is deprecated. Please remove it and update your server rewrite rules to use <code>%2$s</code> instead.' ), 'wp-content/blogs.php', 'wp-includes/ms-files.php' ) . '</div>';
    799799}
    800800add_action( 'admin_notices', 'ms_deprecated_blogs_file' );
Note: See TracChangeset for help on using the changeset viewer.