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-includes/class-wp-user-query.php

    r46156 r47122  
    5959        private $compat_fields = array( 'results', 'total_users' );
    6060
    61         // SQL clauses
     61        // SQL clauses.
    6262        public $query_fields;
    6363        public $query_from;
     
    440440                }
    441441
    442                 // sorting
     442                // Sorting.
    443443                $qv['order'] = isset( $qv['order'] ) ? strtoupper( $qv['order'] ) : '';
    444444                $order       = $this->parse_order( $qv['order'] );
     
    490490                $this->query_orderby = 'ORDER BY ' . implode( ', ', $orderby_array );
    491491
    492                 // limit
     492                // Limit.
    493493                if ( isset( $qv['number'] ) && $qv['number'] > 0 ) {
    494494                        if ( $qv['offset'] ) {
     
    764764                        $_orderby = 'display_name';
    765765                } elseif ( 'post_count' == $orderby ) {
    766                         // todo: avoid the JOIN
     766                        // @todo Avoid the JOIN.
    767767                        $where             = get_posts_by_author_sql( 'post' );
    768768                        $this->query_from .= " LEFT OUTER JOIN (
Note: See TracChangeset for help on using the changeset viewer.