Make WordPress Core

Ticket #41338: 41338.diff

File 41338.diff, 1.5 KB (added by pbiron, 8 years ago)

fix description of $status parameter in WP_Comment_Query::construct()

  • src/wp-includes/class-wp-comment-query.php

    diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php
    index 25b7fcf..e8eeca1 100644
    a b class WP_Comment_Query { 
    232232         *                                                   Default empty.
    233233         *     @type string       $search                    Search term(s) to retrieve matching comments for.
    234234         *                                                   Default empty.
    235          *     @type string       $status                    Comment status to limit results by. Accepts 'hold'
    236          *                                                   (`comment_status=0`), 'approve' (`comment_status=1`),
    237          *                                                   'all', or a custom comment status. Default 'all'.
     235         *     @type string|array $status                    Comment stati to limit results by. Accepts an array
     236         *                                                   or space/comma separate list of 'hold' (`comment_status=0`),
     237         *                                                   'approve' (`comment_status=1`), 'all', or a custom
     238         *                                                   comment status. Default 'all'.
    238239         *     @type string|array $type                      Include comments of a given type, or array of types.
    239240         *                                                   Accepts 'comment', 'pings' (includes 'pingback' and
    240241         *                                                   'trackback'), or anycustom type string. Default empty.