From b440cd966f3b9bf6b210c8b7d42ab68596920084 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 Aug 2019 02:19:19 +0000 Subject: [PATCH] Docs: Remove incorrect `@return` tags in `comment_reply_link()` and `post_reply_link()` DocBlocks. Props atachibana. Fixes #47826. git-svn-id: https://develop.svn.wordpress.org/trunk@45741 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 76a528cb28..cba51bbdbb 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1621,7 +1621,7 @@ function comments_popup_link( $zero = false, $one = false, $more = false, $css_c * @param int|WP_Comment $comment Comment being replied to. Default current comment. * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. * Default current post. - * @return void|false|string Link to show comment form, if successful. False, if comments are closed. + * @return string|false|null Link to show comment form, if successful. False, if comments are closed. */ function get_comment_reply_link( $args = array(), $comment = null, $post = null ) { $defaults = array( @@ -1730,7 +1730,6 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null * @param int $comment Comment being replied to. Default current comment. * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. * Default current post. - * @return mixed Link to show comment form, if successful. False, if comments are closed. */ function comment_reply_link( $args = array(), $comment = null, $post = null ) { echo get_comment_reply_link( $args, $comment, $post ); @@ -1757,7 +1756,7 @@ function comment_reply_link( $args = array(), $comment = null, $post = null ) { * } * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on. * Default current post. - * @return false|null|string Link to show comment form, if successful. False, if comments are closed. + * @return string|false|null Link to show comment form, if successful. False, if comments are closed. */ function get_post_reply_link( $args = array(), $post = null ) { $defaults = array( @@ -1821,7 +1820,6 @@ function get_post_reply_link( $args = array(), $post = null ) { * @param array $args Optional. Override default options, * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. * Default current post. - * @return string|bool|null Link to show comment form, if successful. False, if comments are closed. */ function post_reply_link( $args = array(), $post = null ) { echo get_post_reply_link( $args, $post );