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
This commit is contained in:
Sergey Biryukov 2019-08-04 02:19:19 +00:00
parent a7b20de958
commit b440cd966f
1 changed files with 2 additions and 4 deletions

View File

@ -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 );