From 7babaafdbbe59d9ccada1b5c640bf7482f248c45 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 20 Oct 2016 18:58:26 +0000 Subject: [PATCH] Comments: Fix description for `reverse_top_level` argument in `wp_list_comments()`. It's a boolean, not a string. Introduced in [25567]. Props bcole808. Fixes #38371. git-svn-id: https://develop.svn.wordpress.org/trunk@38845 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 581c7b71e5..dc63e3653f 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1910,7 +1910,7 @@ function comment_form_title( $noreplytext = false, $replytext = false, $linktopa * @type int $page Page ID to list comments for. Default empty. * @type int $per_page Number of comments to list per page. Default empty. * @type int $avatar_size Height and width dimensions of the avatar size. Default 32. - * @type string $reverse_top_level Ordering of the listed comments. Default null. Accepts 'desc', 'asc'. + * @type bool $reverse_top_level Ordering of the listed comments. If true, will display newest comments first. * @type bool $reverse_children Whether to reverse child comments in the list. Default null. * @type string $format How to format the comments list. * Default 'html5' if the theme supports it. Accepts 'html5', 'xhtml'.