Changeset 41150
- Timestamp:
- 07/25/2017 05:42:14 PM (7 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r40956 r41150 244 244 ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php 245 245 if ( in_array( $user->user_login, $super_admins ) ) { 246 echo ' -' . __( 'Super Admin' );246 echo ' — ' . __( 'Super Admin' ); 247 247 } 248 248 ?></strong> -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r41138 r41150 406 406 $actions = array(); 407 407 $checkbox = ''; 408 $super_admin = ''; 409 410 if ( is_multisite() && current_user_can( 'manage_network_users' ) ) { 411 if ( in_array( $user_object->user_login, get_super_admins(), true ) ) { 412 $super_admin = ' — ' . __( 'Super Admin' ); 413 } 414 } 415 408 416 // Check if the user for this row is editable 409 417 if ( current_user_can( 'list_users' ) ) { … … 412 420 413 421 if ( current_user_can( 'edit_user', $user_object->ID ) ) { 414 $edit = "<strong><a href=\" $edit_link\">$user_object->user_login</a></strong><br />";422 $edit = "<strong><a href=\"{$edit_link}\">{$user_object->user_login}</a>{$super_admin}</strong><br />"; 415 423 $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>'; 416 424 } else { 417 $edit = "<strong> $user_object->user_login</strong><br />";425 $edit = "<strong>{$user_object->user_login}{$super_admin}</strong><br />"; 418 426 } 419 427 … … 454 462 455 463 } else { 456 $edit = '<strong>' . $user_object->user_login . '</strong>';464 $edit = "<strong>{$user_object->user_login}{$super_admin}</strong>"; 457 465 } 458 466 $avatar = get_avatar( $user_object->ID, 32 );
Note: See TracChangeset
for help on using the changeset viewer.