[wp-trac] [WordPress Trac] #42795: docs: Missing @return for WP_Comment_Query::get_comment_ids()
WordPress Trac
noreply at wordpress.org
Mon Dec 4 17:02:50 UTC 2017
#42795: docs: Missing @return for WP_Comment_Query::get_comment_ids()
--------------------------+-----------------------------
Reporter: birgire | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.4
Severity: normal | Keywords:
Focuses: docs |
--------------------------+-----------------------------
The inline documentation for {{{WP_Comment_Query::get_comment_ids()}}} is
missing the {{{@return}}} description.
There are two return cases:
- (int) with the count query variable as true
- (array) for the comment ids
See here:
https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/class-wp-
comment-query.php#L889
We can e.g. look into {{{WP_Comment_Query::get_comment_ids()}}} for a
similar case.
Good-first-bug?
References:
https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/class-wp-
comment-query.php#L468
https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/class-wp-
site-query.php#L318
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42795>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list