From 0cf123547791a83c2455fc8cdb99d14589160f11 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 Aug 2019 02:20:55 +0000 Subject: [PATCH] Docs: Remove incorrect `@return` tags in `comment_reply_link()` and `post_reply_link()` DocBlocks. Props atachibana. Fixes #47826. Built from https://develop.svn.wordpress.org/trunk@45741 git-svn-id: http://core.svn.wordpress.org/trunk@45552 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 6 ++---- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 76a528cb28..cba51bbdbb 100644 --- a/wp-includes/comment-template.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a940c66895..658491831f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45740'; +$wp_version = '5.3-alpha-45741'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.