mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Update network upgrade links. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@15484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
551dc49b7b
commit
44799523bc
@ -172,6 +172,16 @@ $current_screen->parent_base = str_replace('.php', '', $current_screen->parent_b
|
||||
<?php
|
||||
screen_meta($current_screen);
|
||||
|
||||
if ( is_multisite() ) {
|
||||
if ( is_network_admin() )
|
||||
do_action('network_admin_notices');
|
||||
else
|
||||
do_action('site_admin_notices');
|
||||
} else {
|
||||
do_action('network_admin_notices');
|
||||
do_action('site_admin_notices');
|
||||
}
|
||||
|
||||
do_action('admin_notices');
|
||||
|
||||
if ( $parent_file == 'options-general.php' )
|
||||
|
@ -731,7 +731,7 @@ function site_admin_notice() {
|
||||
if ( !is_super_admin() )
|
||||
return false;
|
||||
if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version )
|
||||
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( admin_url( 'ms-upgrade-network.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' );
|
||||
|
||||
|
@ -62,7 +62,7 @@ switch ( $action ) {
|
||||
do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] );
|
||||
}
|
||||
echo "</ul>";
|
||||
?><p><?php _e( 'If your browser doesn’t start loading the next page automatically, click this link:' ); ?> <a class="button" href="ms-upgrade-network.php?action=upgrade&n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p>
|
||||
?><p><?php _e( 'If your browser doesn’t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p>
|
||||
<script type='text/javascript'>
|
||||
<!--
|
||||
function nextpage() {
|
||||
|
Loading…
Reference in New Issue
Block a user