- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r47089 r47122 138 138 $args = apply_filters( 'users_list_table_query_args', $args ); 139 139 140 // Query the user IDs for this page 140 // Query the user IDs for this page. 141 141 $wp_user_search = new WP_User_Query( $args ); 142 142 … … 167 167 * Filtersing of the user table. 168 168 * 169 * @since 3.1.0169 * @since 3.1.0 170 170 * 171 171 * @global string $role … … 258 258 * Retrieve an associative array of bulk actions available on this table. 259 259 * 260 * @since 3.1.0260 * @since 3.1.0 261 261 * 262 262 * @return string[] Array of bulk action labels keyed by their action. … … 331 331 * the role change drop-down. 332 332 * 333 * @since 3.1.0333 * @since 3.1.0 334 334 * 335 335 * @return string The bulk action required. … … 347 347 * Get a list of columns for the list table. 348 348 * 349 * @since 3.1.0349 * @since 3.1.0 350 350 * 351 351 * @return string[] Array of column titles keyed by their column name. … … 390 390 */ 391 391 public function display_rows() { 392 // Query the post counts for this page 392 // Query the post counts for this page. 393 393 if ( ! $this->is_site_users ) { 394 394 $post_counts = count_many_users_posts( array_keys( $this->items ) ); … … 429 429 $user_roles = $this->get_role_list( $user_object ); 430 430 431 // Set up the hover actions for this user 431 // Set up the hover actions for this user. 432 432 $actions = array(); 433 433 $checkbox = ''; … … 440 440 } 441 441 442 // Check if the user for this row is editable 442 // Check if the user for this row is editable. 443 443 if ( current_user_can( 'list_users' ) ) { 444 // Set up the user editing link 444 // Set up the user editing link. 445 445 $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_object->ID ) ) ); 446 446 … … 486 486 $role_classes = esc_attr( implode( ' ', array_keys( $user_roles ) ) ); 487 487 488 // Set up the checkbox ( because the user is editable, otherwise it's empty )488 // Set up the checkbox (because the user is editable, otherwise it's empty). 489 489 $checkbox = sprintf( 490 490 '<label class="screen-reader-text" for="user_%1$s">%2$s</label>' . … … 515 515 } 516 516 if ( 'posts' === $column_name ) { 517 $classes .= ' num'; // Special case for that column 517 $classes .= ' num'; // Special case for that column. 518 518 } 519 519
Note: See TracChangeset
for help on using the changeset viewer.