mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
User is_super_admin(). Props GIGALinux. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12646 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -14,9 +14,8 @@ add_action( 'admin_head', 'index_css' );
|
||||
|
||||
require_once('admin-header.php');
|
||||
|
||||
if ( is_site_admin() == false ) {
|
||||
if ( !is_super_admin() )
|
||||
wp_die( __('You do not have permission to access this page.') );
|
||||
}
|
||||
|
||||
global $wpdb;
|
||||
$c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}");
|
||||
|
||||
Reference in New Issue
Block a user