diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index b87844b601..19585f37a2 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -588,10 +588,8 @@ function get_comment_link( $comment = null, $args = array() ) { $comment = get_comment($comment); // Backwards compat - if ( !is_array($args) ) { - $page = $args; - $args = array(); - $args['page'] = $page; + if ( ! is_array( $args ) ) { + $args = array( 'page' => $args ); } $defaults = array( 'type' => 'all', 'page' => '', 'per_page' => '', 'max_depth' => '' ); @@ -1780,7 +1778,7 @@ class Walker_Comment extends Walker {
-
+