Changeset 9406
- Timestamp:
- 10/29/2008 10:56:48 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r9405 r9406 906 906 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed. 907 907 */ 908 function comment_reply_link($args = array(), $comment = null, $post = null) {908 function get_comment_reply_link($args = array(), $comment = null, $post = null) { 909 909 global $user_ID; 910 910 … … 932 932 $link = "<a rel='nofollow' href='" . wp_specialchars( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#respond' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\")'>$reply_text</a>"; 933 933 934 return $before . $link . $after;935 } 936 937 /** 938 * Display HTML content for cancel comment replylink.934 return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); 935 } 936 937 /** 938 * Displays the HTML content for reply to comment link. 939 939 * 940 940 * @since 2.7.0 941 * 941 * @see get_comment_reply_link() Echoes result 942 * 943 * @param array $args Optional. Override default options. 944 * @param int $comment Optional. Comment being replied to. 945 * @param int $post Optional. Post that the comment is going to be displayed on. 946 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed. 947 */ 948 function comment_reply_link($args = array(), $comment = null, $post = null) { 949 echo get_comment_reply_link($args, $comment, $post); 950 } 951 952 /** 953 * Retrieve HTML content for cancel comment reply link. 954 * 955 * @since 2.7.0 956 * 942 957 * @param string $text Optional. Text to display for cancel reply link. 943 958 */ 944 function cancel_comment_reply_link($text = '') {959 function get_cancel_comment_reply_link($text = '') { 945 960 if ( empty($text) ) 946 961 $text = __('Click here to cancel reply.'); 947 962 948 963 $style = isset($_GET['replytocom']) ? '' : ' style="display:none;"'; 949 950 echo '<a rel="nofollow" id="cancel-comment-reply-link" href="' . wp_specialchars( remove_query_arg('replytocom') ) . '#respond"' . $style . '>' . $text . '</a>'; 964 $link = wp_specialchars( remove_query_arg('replytocom') ) . '#respond'; 965 return apply_filters('cancel_comment_reply_link', '<a rel="nofollow" id="cancel-comment-reply-link" href="' . $link . '"' . $style . '>' . $text . '</a>', $link, $text); 966 } 967 968 /** 969 * Display HTML content for cancel comment reply link. 970 * 971 * @since 2.7.0 972 * 973 * @param string $text Optional. Text to display for cancel reply link. 974 */ 975 function cancel_comment_reply_link($text = '') { 976 echo get_cancel_comment_reply_link($text); 951 977 } 952 978 … … 1104 1130 1105 1131 <div class="reply"> 1106 <?php echocomment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['depth']))) ?>1132 <?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['depth']))) ?> 1107 1133 </div> 1108 1134 <?php if ( 'ul' == $args['style'] ) : ?> -
trunk/wp-includes/cron.php
r9403 r9406 179 179 return; 180 180 181 // WPCOM: Use SERVER_ADDR182 //$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?check=' . wp_hash('187425');183 181 $cron_url = 'http://' . $_SERVER['SERVER_ADDR'] . '/wp-cron.php?check=' . wp_hash('187425'); 184 182 /*
Note: See TracChangeset
for help on using the changeset viewer.