Docs: Synchronize "Default empty array" notes for $args parameter in get_comment_text() and comment_text().

Props denisco.
See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@47032 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-01-02 19:20:33 +00:00
parent 10d4ad91b0
commit b773334bf2

View File

@ -953,7 +953,7 @@ function get_comments_number_text( $zero = false, $one = false, $more = false )
* *
* @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the text. * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the text.
* Default current comment. * Default current comment.
* @param array $args Optional. An array of arguments. Default empty. * @param array $args Optional. An array of arguments. Default empty array.
* @return string The comment content. * @return string The comment content.
*/ */
function get_comment_text( $comment_ID = 0, $args = array() ) { function get_comment_text( $comment_ID = 0, $args = array() ) {
@ -983,7 +983,7 @@ function get_comment_text( $comment_ID = 0, $args = array() ) {
* *
* @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the text. * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the text.
* Default current comment. * Default current comment.
* @param array $args Optional. An array of arguments. Default empty array. Default empty. * @param array $args Optional. An array of arguments. Default empty array.
*/ */
function comment_text( $comment_ID = 0, $args = array() ) { function comment_text( $comment_ID = 0, $args = array() ) {
$comment = get_comment( $comment_ID ); $comment = get_comment( $comment_ID );
@ -1732,7 +1732,7 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null
* *
* @see get_comment_reply_link() * @see get_comment_reply_link()
* *
* @param array $args Optional. Override default options. * @param array $args Optional. Override default options. Default empty array.
* @param int|WP_Comment $comment Comment being replied to. Default current comment. * @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. * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.
* Default current post. * Default current post.
@ -1823,7 +1823,7 @@ function get_post_reply_link( $args = array(), $post = null ) {
* *
* @see get_post_reply_link() * @see get_post_reply_link()
* *
* @param array $args Optional. Override default options, * @param array $args Optional. Override default options. Default empty array.
* @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on. * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.
* Default current post. * Default current post.
*/ */