Changeset 10150 for trunk/wp-includes/comment-template.php
- Timestamp:
- 12/09/2008 06:03:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r10043 r10150 797 797 * 798 798 * @param string $file Optional, default '/comments.php'. The file to load 799 * @param bool $separate_comments Optional, whether to separate the comments by comment type. Default is false. 799 * @param bool $separate_comments Optional, whether to separate the comments by comment type. Default is false. 800 800 * @return null Returns null if no comments appear 801 801 */ … … 986 986 if ( get_option('comment_registration') && !$user_ID ) 987 987 $link = '<a rel="nofollow" href="' . site_url('wp-login.php?redirect_to=' . get_permalink()) . '">' . $login_text . '</a>'; 988 else 988 else 989 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\")'>$reply_text</a>"; 990 990 … … 1011 1011 * 1012 1012 * @since 2.7.0 1013 * 1013 * 1014 1014 * @param string $text Optional. Text to display for cancel reply link. 1015 1015 */ … … 1017 1017 if ( empty($text) ) 1018 1018 $text = __('Click here to cancel reply.'); 1019 1019 1020 1020 $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"'; 1021 1021 $link = wp_specialchars( remove_query_arg('replytocom') ) . '#respond';
Note: See TracChangeset
for help on using the changeset viewer.