- Timestamp:
- 09/22/2015 06:05:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r34289 r34383 50 50 } 51 51 52 if ( $role == 'super' ) {52 if ( $role === 'super' ) { 53 53 $logins = implode( "', '", get_super_admins() ); 54 54 $args['include'] = $wpdb->get_col( "SELECT ID FROM $wpdb->users WHERE user_login IN ('$logins')" ); … … 123 123 $role_links = array(); 124 124 $role_links['all'] = "<a href='" . network_admin_url('users.php') . "'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>'; 125 $class = $role == 'super' ? ' class="current"' : '';125 $class = $role === 'super' ? ' class="current"' : ''; 126 126 $role_links['super'] = "<a href='" . network_admin_url('users.php?role=super') . "'$class>" . sprintf( _n( 'Super Admin <span class="count">(%s)</span>', 'Super Admins <span class="count">(%s)</span>', $total_admins ), number_format_i18n( $total_admins ) ) . '</a>'; 127 127 … … 138 138 parent::pagination ( $which ); 139 139 140 if ( 'top' == $which )140 if ( 'top' === $which ) { 141 141 $this->view_switcher( $mode ); 142 } 142 143 } 143 144 … … 269 270 public function column_registered( $user ) { 270 271 global $mode; 271 if ( 'list' == $mode ) {272 if ( 'list' === $mode ) { 272 273 $date = __( 'Y/m/d' ); 273 274 } else { … … 312 313 } 313 314 314 $path = ( $val->path == '/' ) ? '' : $val->path;315 $path = ( $val->path === '/' ) ? '' : $val->path; 315 316 echo '<span class="site-' . $val->site_id . '" >'; 316 317 echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . get_current_site()->domain, '', $val->domain . $path ) . '</a>';
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)