site_admin_notice

Displays an admin notice to upgrade all sites after a core upgrade.

Description

site_admin_notice(); 

Usage

  1. if ( !function_exists( 'site_admin_notice' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/ms.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = site_admin_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/ms.php  
  1. function site_admin_notice() { 
  2. global $wp_db_version, $pagenow; 
  3.  
  4. if ( ! is_super_admin() ) { 
  5. return false; 
  6.  
  7. if ( 'upgrade.php' == $pagenow ) { 
  8. return; 
  9.  
  10. if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) { 
  11. echo "<div class='update-nag'>" . sprintf( __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ) . "</div>";