Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r47089 r47122  
    138138        $args = apply_filters( 'users_list_table_query_args', $args );
    139139
    140         // Query the user IDs for this page
     140        // Query the user IDs for this page.
    141141        $wp_user_search = new WP_User_Query( $args );
    142142
     
    167167     * Filtersing of the user table.
    168168     *
    169      * @since  3.1.0
     169     * @since 3.1.0
    170170     *
    171171     * @global string $role
     
    258258     * Retrieve an associative array of bulk actions available on this table.
    259259     *
    260      * @since  3.1.0
     260     * @since 3.1.0
    261261     *
    262262     * @return string[] Array of bulk action labels keyed by their action.
     
    331331     * the role change drop-down.
    332332     *
    333      * @since  3.1.0
     333     * @since 3.1.0
    334334     *
    335335     * @return string The bulk action required.
     
    347347     * Get a list of columns for the list table.
    348348     *
    349      * @since  3.1.0
     349     * @since 3.1.0
    350350     *
    351351     * @return string[] Array of column titles keyed by their column name.
     
    390390     */
    391391    public function display_rows() {
    392         // Query the post counts for this page
     392        // Query the post counts for this page.
    393393        if ( ! $this->is_site_users ) {
    394394            $post_counts = count_many_users_posts( array_keys( $this->items ) );
     
    429429        $user_roles = $this->get_role_list( $user_object );
    430430
    431         // Set up the hover actions for this user
     431        // Set up the hover actions for this user.
    432432        $actions     = array();
    433433        $checkbox    = '';
     
    440440        }
    441441
    442         // Check if the user for this row is editable
     442        // Check if the user for this row is editable.
    443443        if ( current_user_can( 'list_users' ) ) {
    444             // Set up the user editing link
     444            // Set up the user editing link.
    445445            $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_object->ID ) ) );
    446446
     
    486486            $role_classes = esc_attr( implode( ' ', array_keys( $user_roles ) ) );
    487487
    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).
    489489            $checkbox = sprintf(
    490490                '<label class="screen-reader-text" for="user_%1$s">%2$s</label>' .
     
    515515            }
    516516            if ( 'posts' === $column_name ) {
    517                 $classes .= ' num'; // Special case for that column
     517                $classes .= ' num'; // Special case for that column.
    518518            }
    519519
Note: See TracChangeset for help on using the changeset viewer.