WordPress.org

Make WordPress Core

Ticket #16063: 16063.2.diff

File 16063.2.diff, 1.3 KB (added by PeteMall, 7 years ago)
  • wp-admin/includes/ms.php

     
    575575                echo "<div class='update-nag'>$msg</div>";
    576576        }
    577577}
    578 add_action( 'admin_notices', 'secret_salt_warning' );
     578add_action( 'network_admin_notices', 'secret_salt_warning' );
    579579
    580580function site_admin_notice() {
    581581        global $wp_db_version;
     
    585585                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>";
    586586}
    587587add_action( 'admin_notices', 'site_admin_notice' );
     588add_action( 'network_admin_notices', 'site_admin_notice' );
    588589
    589590function avoid_blog_page_permalink_collision( $data, $postarr ) {
    590591        if ( is_subdomain_install() )
     
    663664                return;
    664665        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>';
    665666}
    666 add_action( 'admin_notices', 'ms_deprecated_blogs_file' );
     667add_action( 'network_admin_notices', 'ms_deprecated_blogs_file' );
    667668
    668669/**
    669670 * Grants super admin privileges.