Make WordPress Core

Ticket #34442: 34442-2.diff

File 34442-2.diff, 1.2 KB (added by birgire, 9 years ago)

Added include_unapproved to the inline documentation

  • wp-includes/comment-template.php

     
    13521352         *     @type bool         $no_found_rows             Whether to refrain from querying for found rows.
    13531353         *     @type bool         $update_comment_meta_cache Whether to prime cache for comment meta.
    13541354         *     @type bool|string  $hierarchical              Whether to query for comments hierarchically.
     1355         *     @type array        $include_unapproved        Array of IDs or email addresses of users whose unapproved
     1356         *                                                   comments will be returned by the query regardless of
     1357         *                                                   `$status`. Default empty.
    13551358         *     @type int          $offset                    Comment offset.
    13561359         *     @type int          $number                    Number of comments to fetch.
    13571360         * }
    13581361         */
    13591362        $comment_args = apply_filters( 'comments_template_query_args', $comment_args );
     1363
    13601364        $comment_query = new WP_Comment_Query( $comment_args );
    13611365        $_comments = $comment_query->comments;
    13621366