- Timestamp:
- 09/19/2022 09:06:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r54071 r54215 138 138 $total_admins = count( $super_admins ); 139 139 140 $current_link_attributes = 'super' !== $role ? ' class="current" aria-current="page"' : ''; 141 $role_links = array(); 142 $role_links['all'] = sprintf( 143 '<a href="%s"%s>%s</a>', 144 network_admin_url( 'users.php' ), 145 $current_link_attributes, 146 sprintf( 140 $role_links = array(); 141 $role_links['all'] = array( 142 'url' => network_admin_url( 'users.php' ), 143 'label' => sprintf( 147 144 /* translators: Number of users. */ 148 145 _nx( … … 153 150 ), 154 151 number_format_i18n( $total_users ) 155 ) 156 ); 157 $current_link_attributes = 'super' === $role ? ' class="current" aria-current="page"' : ''; 158 $role_links['super'] = sprintf( 159 '<a href="%s"%s>%s</a>', 160 network_admin_url( 'users.php?role=super' ), 161 $current_link_attributes, 162 sprintf( 152 ), 153 'current' => 'super' !== $role, 154 ); 155 156 $role_links['super'] = array( 157 'url' => network_admin_url( 'users.php?role=super' ), 158 'label' => sprintf( 163 159 /* translators: Number of users. */ 164 160 _n( … … 168 164 ), 169 165 number_format_i18n( $total_admins ) 170 ) 171 ); 172 173 return $role_links; 166 ), 167 'current' => 'super' === $role, 168 ); 169 170 return $this->get_views_links( $role_links ); 174 171 } 175 172
Note: See TracChangeset
for help on using the changeset viewer.