Opened 10 years ago
Closed 10 years ago
#38371 closed defect (bug) (fixed)
PHP documentation for wp_list_comments parameter reverse_top_level is incorrect
| Reported by: | bcole808 | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Comments | Version: | 4.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @bcole808 - Thanks for the ticket and the patch. Looks good to me.
Introduced in [25567].