Changeset 29822
- Timestamp:
- 10/02/2014 08:40:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r29809 r29822 1306 1306 1307 1307 $defaults = array( 1308 'add_below' => 'comment', 1309 'respond_id' => 'respond', 1310 'reply_text' => __('Reply'), 1311 'login_text' => __('Log in to Reply'), 1312 'depth' => 0, 1313 'before' => '', 1314 'after' => '' 1308 'add_below' => 'comment', 1309 'respond_id' => 'respond', 1310 'reply_text' => __( 'Reply' ), 1311 'reply_to_text' => __( 'Reply to %s' ), 1312 'login_text' => __( 'Log in to Reply' ), 1313 'depth' => 0, 1314 'before' => '', 1315 'after' => '' 1315 1316 ); 1316 1317 … … 1338 1339 $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $args['login_text'] . '</a>'; 1339 1340 } else { 1340 $link = "<a class='comment-reply-link' href='" . esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")' >$reply_text</a>";1341 $link = "<a class='comment-reply-link' href='" . esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")' aria-label='" . esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ) . "'>$reply_text</a>"; 1341 1342 } 1342 1343 /**
Note: See TracChangeset
for help on using the changeset viewer.