Make WordPress Core


Ignore:
Timestamp:
02/22/2010 06:41:38 PM (17 years ago)
Author:
wpmuguru
Message:

multisite UX, see #11644, add manage_ caps for super_admin, fixes #11803

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-upgrade-network.php

    • Property svn:mergeinfo set to
    r13292 r13301  
    77require_once( ABSPATH . WPINC . '/http.php' );
    88
    9 $title = __('Upgrade Site');
     9$title = __('Upgrade Network');
    1010$parent_file = 'ms-admin.php';
    1111require_once('admin-header.php');
    1212
    13 if ( !is_super_admin() )
     13if ( ! current_user_can( 'manage_network' ) )
    1414        wp_die( __('You do not have permission to access this page.') );
    1515
    1616echo '<div class="wrap">';
    1717screen_icon();
    18 echo '<h2>'.__('Upgrade Site').'</h2>';
     18echo '<h2>'.__('Upgrade Network').'</h2>';
    1919
    2020$action = isset($_GET['action']) ? $_GET['action'] : 'show';
    … …  
    4444                        }
    4545                        echo "</ul>";
    46                         ?><p><?php _e("If your browser doesn't start loading the next page automatically click this link:"); ?> <a class="button" href="ms-upgrade-site.php?action=upgrade&amp;n=<?php echo ($n + 5) ?>"><?php _e("Next Blogs"); ?></a></p>
     46                        ?><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&amp;n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p>
    4747                        <script type='text/javascript'>
    4848                        <!--
    4949                        function nextpage() {
    50                                 location.href = "ms-upgrade-site.php?action=upgrade&n=<?php echo ($n + 5) ?>";
     50                                location.href = "ms-upgrade-network.php?action=upgrade&n=<?php echo ($n + 5) ?>";
    5151                        }
    5252                        setTimeout( "nextpage()", 250 );
    … …  
    5959        case 'show':
    6060        default:
    61                 ?><p><?php _e("You can upgrade all the blogs on your site through this page. It works by calling the upgrade script of each blog automatically. Hit the link below to upgrade."); ?></p>
    62                 <p><a class="button" href="ms-upgrade-site.php?action=upgrade"><?php _e("Upgrade Site"); ?></a></p><?php
     61                ?><p><?php _e("You can upgrade all the sites on your network through this page. It works by calling the upgrade script of each site automatically. Hit the link below to upgrade."); ?></p>
     62                <p><a class="button" href="ms-upgrade-network.php?action=upgrade"><?php _e("Upgrade Network"); ?></a></p><?php
    6363                do_action( 'wpmu_upgrade_page' );
    6464        break;
Note: See TracChangeset for help on using the changeset viewer.