Remove site admin logged in notice. The new Super Admin menu makes that obvious enough. see #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@13586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-03-04 18:59:24 +00:00
parent cbc1ea27e8
commit 103a4f46b6
1 changed files with 1 additions and 3 deletions

View File

@ -665,11 +665,9 @@ function site_admin_notice() {
global $current_user, $wp_db_version; global $current_user, $wp_db_version;
if ( !is_super_admin() ) if ( !is_super_admin() )
return false; return false;
printf("<div id='update-nag'>" . __("Hi %s! You're logged in as a network administrator.") . "</div>", $current_user->user_login); if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version )
if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) {
echo "<div id='update-nag'>" . __( 'Thank you for Upgrading! Please visit the <a href="ms-upgrade-network.php">Upgrade Network</a> page to update all your sites.' ) . "</div>"; echo "<div id='update-nag'>" . __( 'Thank you for Upgrading! Please visit the <a href="ms-upgrade-network.php">Upgrade Network</a> page to update all your sites.' ) . "</div>";
} }
}
add_action( 'admin_notices', 'site_admin_notice' ); add_action( 'admin_notices', 'site_admin_notice' );
function avoid_blog_page_permalink_collision( $data, $postarr ) { function avoid_blog_page_permalink_collision( $data, $postarr ) {