- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r47122 r47219 55 55 } 56 56 57 if ( $role === 'super') {57 if ( 'super' === $role ) { 58 58 $args['login__in'] = get_super_admins(); 59 59 } … … 85 85 86 86 if ( ! empty( $_REQUEST['mode'] ) ) { 87 $mode = $_REQUEST['mode'] === 'excerpt'? 'excerpt' : 'list';87 $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; 88 88 set_user_setting( 'network_users_list_mode', $mode ); 89 89 } else { … … 138 138 $total_admins = count( $super_admins ); 139 139 140 $current_link_attributes = $role !== 'super'? ' class="current" aria-current="page"' : '';140 $current_link_attributes = 'super' !== $role ? ' class="current" aria-current="page"' : ''; 141 141 $role_links = array(); 142 142 $role_links['all'] = sprintf( … … 155 155 ) 156 156 ); 157 $current_link_attributes = $role === 'super'? ' class="current" aria-current="page"' : '';157 $current_link_attributes = 'super' === $role ? ' class="current" aria-current="page"' : ''; 158 158 $role_links['super'] = sprintf( 159 159 '<a href="%s"%s>%s</a>', … … 372 372 } 373 373 374 $path = ( $val->path === '/') ? '' : $val->path;374 $path = ( '/' === $val->path ) ? '' : $val->path; 375 375 $site_classes = array( 'site-' . $val->site_id ); 376 376 /** … … 397 397 398 398 $class = ''; 399 if ( $val->spam == 1) {399 if ( 1 == $val->spam ) { 400 400 $class .= 'site-spammed '; 401 401 } 402 if ( $val->mature == 1) {402 if ( 1 == $val->mature ) { 403 403 $class .= 'site-mature '; 404 404 } 405 if ( $val->deleted == 1) {405 if ( 1 == $val->deleted ) { 406 406 $class .= 'site-deleted '; 407 407 } 408 if ( $val->archived == 1) {408 if ( 1 == $val->archived ) { 409 409 $class .= 'site-archived '; 410 410 }
Note: See TracChangeset
for help on using the changeset viewer.