From 10a9702a4db1d82855b7084b931c147c2eb3eebe Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 4 Jan 2011 07:26:57 +0000 Subject: [PATCH] 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 --- wp-admin/includes/ms.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index b7f1c7367b..596c3b373a 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -575,7 +575,7 @@ function secret_salt_warning() { echo "
$msg
"; } } -add_action( 'admin_notices', 'secret_salt_warning' ); +add_action( 'network_admin_notices', 'secret_salt_warning' ); function site_admin_notice() { global $wp_db_version; @@ -585,6 +585,7 @@ function site_admin_notice() { echo "
" . sprintf( __( 'Thank you for Updating! Please visit the Update Network page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . "
"; } add_action( 'admin_notices', 'site_admin_notice' ); +add_action( 'network_admin_notices', 'site_admin_notice' ); function avoid_blog_page_permalink_collision( $data, $postarr ) { if ( is_subdomain_install() ) @@ -663,7 +664,7 @@ function ms_deprecated_blogs_file() { return; echo '
' . sprintf( __( 'The %1$s file is deprecated. Please remove it and update your server rewrite rules to use %2$s instead.' ), 'wp-content/blogs.php', 'wp-includes/ms-files.php' ) . '
'; } -add_action( 'admin_notices', 'ms_deprecated_blogs_file' ); +add_action( 'network_admin_notices', 'ms_deprecated_blogs_file' ); /** * Grants super admin privileges.