WordPress.org

Make WordPress Core

Changeset 12646


Ignore:
Timestamp:
01/07/2010 03:52:22 PM (10 years ago)
Author:
ryan
Message:

User is_super_admin(). Props GIGALinux. see #11644

Location:
trunk/wp-admin
Files:
5 edited

Legend:

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

    r12632 r12646  
    1515require_once('admin-header.php');
    1616
    17 if ( is_site_admin() == false ) {
     17if ( !is_super_admin() )
    1818    wp_die( __('You do not have permission to access this page.') );
    19 }
    2019
    2120global $wpdb;
  • trunk/wp-admin/ms-edit.php

    r12632 r12646  
    55    wp_die( __('Multisite support is not enabled.') );
    66
    7 if( is_site_admin() == false ) {
     7if ( !is_super_admin() )
    88    wp_die( __('You do not have permission to access this page.') );
    9 }
    109
    1110do_action('wpmuadminedit', '');
  • trunk/wp-admin/ms-sites.php

    r12640 r12646  
    1111
    1212require_once('admin-header.php');
    13 if( is_site_admin() == false ) {
    14     wp_die( __('You do not have permission to access this page.') );
    15 }
     13
     14if ( !is_super_admin() )
     15    wp_die( __('You do not have permission to access this page.') );
     16
    1617$id = intval( $_GET['id'] );
    1718$protocol = is_ssl() ? 'https://' : 'http://';
  • trunk/wp-admin/ms-upgrade-site.php

    r12632 r12646  
    1111require_once('admin-header.php');
    1212
    13 if ( is_site_admin() == false ) {
    14     wp_die( __('You do not have permission to access this page.') );
    15 }
     13if ( !is_super_admin() )
     14    wp_die( __('You do not have permission to access this page.') );
    1615
    1716echo '<div class="wrap">';
  • trunk/wp-admin/ms-users.php

    r12632 r12646  
    1212require_once('admin-header.php');
    1313
    14 if( is_site_admin() == false ) {
     14if ( !is_super_admin() )
    1515    wp_die( __('You do not have permission to access this page.') );
    16 }
    1716
    1817if ( $_GET['updated'] == 'true' ) {
Note: See TracChangeset for help on using the changeset viewer.