Changes from trunk/wp-includes/comment-template.php at r10180 to branches/2.7/wp-includes/comment-template.php at r10401
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/comment-template.php
r10180 r10401 834 834 835 835 $overridden_cpage = FALSE; 836 if ( '' == get_query_var('cpage') && get_option('page_comments') && 'newest' == get_option('default_comments_page')) {837 set_query_var( 'cpage', get_comment_pages_count());836 if ( '' == get_query_var('cpage') && get_option('page_comments') ) { 837 set_query_var( 'cpage', 'newest' == get_option('default_comments_page') ? get_comment_pages_count() : 1 ); 838 838 $overridden_cpage = TRUE; 839 839 } … … 987 987 $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>'; 988 988 else 989 $link = "<a rel='nofollow' href='" . wp_specialchars( 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>";989 $link = "<a rel='nofollow' class='comment-reply-link' href='" . wp_specialchars( 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>"; 990 990 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); 991 991 } … … 1038 1038 $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>'; 1039 1039 } else { 1040 $link = "<a rel='nofollow' href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>";1040 $link = "<a rel='nofollow' class='comment-reply-link' href='" . get_permalink($post->ID) . "#$respond_id' onclick='return addComment.moveForm(\"$add_below-$post->ID\", \"0\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>"; 1041 1041 } 1042 1042 return apply_filters('post_comments_link', $before . $link . $after, $post);
Note: See TracChangeset
for help on using the changeset viewer.