From 87fbd305488780d1a73c9398822dc7eceaf4235a Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 30 Sep 2015 04:12:06 +0000 Subject: [PATCH] Use array hash notation for `get_comment_link()` `$args`. See #34068, #34073. git-svn-id: https://develop.svn.wordpress.org/trunk@34716 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index abb87f656b..bad4a14ea4 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -667,7 +667,14 @@ function comment_ID() { * @global bool $in_comment_loop * * @param WP_Comment|int|null $comment Comment to retrieve. Default current comment. - * @param array $args Optional. An array of arguments to override the defaults. + * @param array $args { + * An array of optional arguments to override the defaults. + * + * @type string $type Passed to {@see get_page_of_comment()}. + * @type int $page Current page of comments, for calculating comment pagination. + * @type int $per_page Per-page value for comment pagination. + * @type int $max_depth Passed to {@see get_page_of_comment()}. + * } * @return string The permalink to the given comment. */ function get_comment_link( $comment = null, $args = array() ) {