Alter admin_notices usage in admin/includes/ms.php due to changes in the action with the network/user admin. props PeteMall, see #16063.

git-svn-id: https://develop.svn.wordpress.org/trunk@17215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-01-04 07:26:57 +00:00
parent 0f477199c3
commit 10a9702a4d

View File

@ -575,7 +575,7 @@ function secret_salt_warning() {
echo "<div class='update-nag'>$msg</div>"; echo "<div class='update-nag'>$msg</div>";
} }
} }
add_action( 'admin_notices', 'secret_salt_warning' ); add_action( 'network_admin_notices', 'secret_salt_warning' );
function site_admin_notice() { function site_admin_notice() {
global $wp_db_version; global $wp_db_version;
@ -585,6 +585,7 @@ function site_admin_notice() {
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( network_admin_url( 'upgrade.php' ) ) ) . "</div>"; 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( network_admin_url( 'upgrade.php' ) ) ) . "</div>";
} }
add_action( 'admin_notices', 'site_admin_notice' ); add_action( 'admin_notices', 'site_admin_notice' );
add_action( 'network_admin_notices', 'site_admin_notice' );
function avoid_blog_page_permalink_collision( $data, $postarr ) { function avoid_blog_page_permalink_collision( $data, $postarr ) {
if ( is_subdomain_install() ) if ( is_subdomain_install() )
@ -663,7 +664,7 @@ function ms_deprecated_blogs_file() {
return; return;
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>'; 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>';
} }
add_action( 'admin_notices', 'ms_deprecated_blogs_file' ); add_action( 'network_admin_notices', 'ms_deprecated_blogs_file' );
/** /**
* Grants super admin privileges. * Grants super admin privileges.