wpseek.com
A WordPress-centric search engine for devs and theme authors
site_admin_notice › WordPress Function
Since3.0.0
Deprecatedn/a
› site_admin_notice ( No parameters )
Returns: |
|
Defined at: |
|
Codex: |
Displays an admin notice to upgrade all sites after a core upgrade.
Source
function site_admin_notice() { global $wp_db_version, $pagenow; if ( ! current_user_can( 'upgrade_network' ) ) { return false; } if ( 'upgrade.php' === $pagenow ) { return; } if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $wp_db_version ) { echo "<div class='update-nag notice notice-warning inline'>" . sprintf( /* translators: %s: URL to Upgrade Network screen. */ __( '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>'; } }