mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
move super admin list maintenance from ms-options to ms-users, See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13419 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+13
-1
@@ -34,6 +34,12 @@ if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
|
||||
case 'add':
|
||||
_e('User added !');
|
||||
break;
|
||||
case 'add_superadmin':
|
||||
_e('Super admin added !');
|
||||
break;
|
||||
case 'remove_superadmin':
|
||||
_e('Super admin removed !');
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</p></div>
|
||||
@@ -119,6 +125,8 @@ if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
|
||||
<input type="submit" value="<?php esc_attr_e('Delete') ?>" name="alluser_delete" class="button-secondary delete" />
|
||||
<input type="submit" value="<?php esc_attr_e('Mark as Spammers') ?>" name="alluser_spam" class="button-secondary" />
|
||||
<input type="submit" value="<?php esc_attr_e('Not Spam') ?>" name="alluser_notspam" class="button-secondary" />
|
||||
<input type="submit" value="<?php esc_attr_e('Add to Super Admin list') ?>" name="add_superadmin" class="button-secondary" />
|
||||
<input type="submit" value="<?php esc_attr_e('Remove from Super Admin list') ?>" name="remove_superadmin" class="button-secondary" />
|
||||
<?php wp_nonce_field( 'allusers' ); ?>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
@@ -157,6 +165,7 @@ if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
|
||||
<tbody id="users" class="list:user user-list">
|
||||
<?php if ($user_list) {
|
||||
$class = '';
|
||||
$super_admins = get_site_option( 'site_admins' );
|
||||
foreach ( (array) $user_list as $user) {
|
||||
$class = ('alternate' == $class) ? '' : 'alternate';
|
||||
|
||||
@@ -185,7 +194,10 @@ if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
|
||||
//$delete = esc_url( add_query_arg( 'wp_http_referer', urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), wp_nonce_url( 'ms-edit.php', 'deleteuser' ) . '&action=deleteuser&id=' . $user['ID'] ) );
|
||||
?>
|
||||
<td class="username column-username">
|
||||
<?php echo $avatar; ?><strong><a href="<?php echo $edit; ?>" class="edit"><?php echo stripslashes($user['user_login']); ?></a></strong>
|
||||
<?php echo $avatar; ?><strong><a href="<?php echo $edit; ?>" class="edit"><?php echo stripslashes($user['user_login']); ?></a><?php
|
||||
if ( in_array( $user[ 'user_login' ], $super_admins ) )
|
||||
echo ' - ' . __( 'Super admin' );
|
||||
?></strong>
|
||||
<br/>
|
||||
<div class="row-actions">
|
||||
<span class="edit"><a href="<?php echo $edit; ?>">Edit</a></span>
|
||||
|
||||
Reference in New Issue
Block a user