From 6cba6fdc08dd7cf2140a07f99ec0e480dcfe395b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 13 Jul 2020 14:40:27 +0000 Subject: [PATCH] Docs: Improve description of the `$text` parameter in `cancel_comment_reply_link()`. Props stevenlinx. Fixes #50642. git-svn-id: https://develop.svn.wordpress.org/trunk@48457 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index a27764b93f..f52c4989ff 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1867,7 +1867,8 @@ function post_reply_link( $args = array(), $post = null ) { * * @since 2.7.0 * - * @param string $text Optional. Text to display for cancel reply link. Default empty. + * @param string $text Optional. Text to display for cancel reply link. If empty, + * defaults to 'Click here to cancel reply'. Default empty. * @return string */ function get_cancel_comment_reply_link( $text = '' ) { @@ -1897,7 +1898,8 @@ function get_cancel_comment_reply_link( $text = '' ) { * * @since 2.7.0 * - * @param string $text Optional. Text to display for cancel reply link. Default empty. + * @param string $text Optional. Text to display for cancel reply link. If empty, + * defaults to 'Click here to cancel reply'. Default empty. */ function cancel_comment_reply_link( $text = '' ) { echo get_cancel_comment_reply_link( $text );