From 7d057ea1adc13bc9ef172f270359cf3e4c364cdc Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 8 Jan 2019 04:49:42 +0000 Subject: [PATCH] Docs: Fix the `@param` types for `comments_popup_link(). Props Mirucon. Fixes #44841. git-svn-id: https://develop.svn.wordpress.org/trunk@44457 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index d0bdba5024..918238f7fa 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1516,14 +1516,11 @@ function comments_template( $file = '/comments.php', $separate_comments = false * * @since 0.71 * - * @param string $zero Optional. String to display when no comments. Default false. - * @param string $one Optional. String to display when only one comment is available. - * Default false. - * @param string $more Optional. String to display when there are more than one comment. - * Default false. - * @param string $css_class Optional. CSS class to use for comments. Default empty. - * @param string $none Optional. String to display when comments have been turned off. - * Default false. + * @param false|string $zero Optional. String to display when no comments. Default false. + * @param false|string $one Optional. String to display when only one comment is available. Default false. + * @param false|string $more Optional. String to display when there are more than one comment. Default false. + * @param string $css_class Optional. CSS class to use for comments. Default empty. + * @param false|string $none Optional. String to display when comments have been turned off. Default false. */ function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) { $id = get_the_ID();