diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 400f0b1f95..6128f7bdca 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1387,18 +1387,21 @@ function get_post_reply_link($args = array(), $post = null) { ); $args = wp_parse_args($args, $defaults); - extract($args, EXTR_SKIP); + $add_below = $args['add_below']; + $respond_id = $args['respond_id']; + $reply_text = $args['reply_text']; $post = get_post($post); - if ( !comments_open($post->ID) ) + if ( ! comments_open( $post->ID ) ) { return false; + } - if ( get_option('comment_registration') && ! is_user_logged_in() ) - $link = '' . $login_text . ''; - else + if ( get_option('comment_registration') && ! is_user_logged_in() ) { + $link = '' . $args['login_text'] . ''; + } else { $link = "$reply_text"; - - $formatted_link = $before . $link . $after; + } + $formatted_link = $args['before'] . $link . $args['after']; /** * Filter the formatted post comments link HTML. *