Changeset 12672 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 01/08/2010 08:29:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r12670 r12672 577 577 578 578 function check_import_new_users( $permission ) { 579 if ( !is_s ite_admin() )579 if ( !is_super_admin() ) 580 580 return false; 581 581 return true; … … 649 649 /* Warn the admin if SECRET SALT information is missing from wp-config.php */ 650 650 function secret_salt_warning() { 651 if( !is_s ite_admin() )651 if( !is_super_admin() ) 652 652 return; 653 653 $secret_keys = array( 'NONCE_KEY', 'AUTH_KEY', 'AUTH_SALT', 'LOGGED_IN_KEY', 'LOGGED_IN_SALT', 'SECURE_AUTH_KEY', 'SECURE_AUTH_SALT' ); … … 715 715 $msg .= "<p>" . $content . " <a href='$link'>" . __( 'Read More' ) . "</a> <a href='index.php?feed_dismiss=" . md5( $item[ 'title' ] ) . "'>" . __( "Dismiss" ) . "</a></p>"; 716 716 echo "<div class='updated fade'>$msg</div>"; 717 } elseif( is_s ite_admin() ) {717 } elseif( is_super_admin() ) { 718 718 printf("<div id='update-nag'>" . __("Your feed at %s is empty.") . "</div>", wp_specialchars( $url )); 719 719 } … … 723 723 function site_admin_notice() { 724 724 global $current_user, $wp_db_version; 725 if( !is_s ite_admin() )725 if( !is_super_admin() ) 726 726 return false; 727 727 printf("<div id='update-nag'>" . __("Hi %s! You're logged in as a site administrator.") . "</div>", $current_user->user_login); … … 813 813 */ 814 814 function add_sitewide_activate_row( $file, $plugin_data, $context ) { 815 if ( !is_s ite_admin() )815 if ( !is_super_admin() ) 816 816 return false; 817 817 … … 860 860 $all_plugins = get_plugins(); 861 861 862 if ( !is_s ite_admin() )862 if ( !is_super_admin() ) 863 863 return false; 864 864 … … 964 964 965 965 /* Now unset any sitewide only plugins if the user is not a site admin */ 966 if ( !is_s ite_admin() ) {966 if ( !is_super_admin() ) { 967 967 foreach ( $inactive_plugins as $plugin_name => $activated_time ) { 968 968 if ( is_wpmu_sitewide_plugin( $plugin_name ) ) … … 1007 1007 1008 1008 /* Silently activate because the activate_* hook has already run. */ 1009 if ( is_s ite_admin() ) {1009 if ( is_super_admin() ) { 1010 1010 $_GET['sitewide'] = true; 1011 1011 activate_sitewide_plugin( $_GET['plugin'], true ); … … 1025 1025 deactivate_plugins( $plugin ); 1026 1026 1027 if ( is_s ite_admin() )1027 if ( is_super_admin() ) 1028 1028 activate_sitewide_plugin( $plugin ); 1029 1029 } … … 1091 1091 1092 1092 if ( strpos( $_SERVER['PHP_SELF'], 'user-new.php' ) && !get_site_option( 'add_new_users' ) ) { 1093 if ( is_s ite_admin() ) {1093 if ( is_super_admin() ) { 1094 1094 $messages[] = '<div id="message" class="updated fade"><p>' . __( 'Warning! Only site administrators may see this page. Everyone else will see a <em>page disabled</em> message. Enable it again on <a href="ms-options.php#addnewusers">the options page</a>.' ) . '</p></div>'; 1095 1095 } else { … … 1107 1107 $pages = array( 'theme-install.php', 'plugin-install.php' ); 1108 1108 foreach( $pages as $page ) { 1109 if ( strpos( $_SERVER['PHP_SELF'], $page ) && !is_s ite_admin() ) {1109 if ( strpos( $_SERVER['PHP_SELF'], $page ) && !is_super_admin() ) { 1110 1110 wp_die( __( "Sorry, you're not allowed here." ) ); 1111 1111 } … … 1248 1248 1249 1249 function show_post_thumbnail_warning() { 1250 if ( false == is_s ite_admin() ) {1250 if ( false == is_super_admin() ) { 1251 1251 return; 1252 1252 }
Note: See TracChangeset
for help on using the changeset viewer.