Opened 7 years ago
Closed 7 years ago
#38371 closed defect (bug) (fixed)
PHP documentation for wp_list_comments parameter reverse_top_level is incorrect
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Comments | Keywords: | |
Focuses: | docs | Cc: |
Description
The PHP docs for the parameter currently reads:
@type string $reverse_top_level Ordering of the listed comments. Default null. Accepts 'desc', 'asc'.
however in reading how this parameter is used, it must be set to a boolean value. Using the string "desc" or "asc" will cause the function to always show the oldest comments first, as it gets converted to a boolean value.
Attached is a patch to update the docs to reflect actual behavior.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi @bcole808 - Thanks for the ticket and the patch. Looks good to me.
Introduced in [25567].