mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
More MS cleanups. props ocean90. see #12460
git-svn-id: https://develop.svn.wordpress.org/trunk@13953 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4,6 +4,9 @@ require_once( './admin.php' );
|
||||
if ( !is_multisite() )
|
||||
wp_die( __( 'Multisite support is not enabled.' ) );
|
||||
|
||||
if ( ! current_user_can( 'manage_network_users' ) )
|
||||
wp_die( __( 'You do not have permission to access this page.' ) );
|
||||
|
||||
$title = __( 'Users' );
|
||||
$parent_file = 'ms-admin.php';
|
||||
|
||||
@@ -11,9 +14,6 @@ wp_enqueue_script( 'admin-forms' );
|
||||
|
||||
require_once( './admin-header.php' );
|
||||
|
||||
if ( ! current_user_can( 'manage_network_users' ) )
|
||||
wp_die( __( 'You do not have permission to access this page.' ) );
|
||||
|
||||
if ( isset( $_GET['updated'] ) && $_GET['updated'] == 'true' && ! empty( $_GET['action'] ) ) {
|
||||
?>
|
||||
<div id="message" class="updated fade"><p>
|
||||
@@ -26,7 +26,7 @@ if ( isset( $_GET['updated'] ) && $_GET['updated'] == 'true' && ! empty( $_GET['
|
||||
_e( 'Users marked as spam.' );
|
||||
break;
|
||||
case 'all_notspam':
|
||||
_e( 'Users marked as not spam.' );
|
||||
_e( 'Users removed from spam.' );
|
||||
break;
|
||||
case 'all_delete':
|
||||
_e( 'Users deleted.' );
|
||||
|
||||
Reference in New Issue
Block a user