Make WordPress Core

Changeset 9406


Ignore:
Timestamp:
10/29/2008 10:56:48 PM (16 years ago)
Author:
ryan
Message:

Wrong view ryan

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r9405 r9406  
    906906 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
    907907 */
    908 function comment_reply_link($args = array(), $comment = null, $post = null) {
     908function get_comment_reply_link($args = array(), $comment = null, $post = null) {
    909909    global $user_ID;
    910910
     
    932932        $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>";
    933933
    934     return $before . $link . $after;
    935 }
    936 
    937 /**
    938  * Display HTML content for cancel comment reply link.
     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.
    939939 *
    940940 * @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 */
     948function 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 *
    942957 * @param string $text Optional. Text to display for cancel reply link.
    943958 */
    944 function cancel_comment_reply_link($text = '') {
     959function get_cancel_comment_reply_link($text = '') {
    945960    if ( empty($text) )
    946961        $text = __('Click here to cancel reply.');
    947962   
    948963    $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 */
     975function cancel_comment_reply_link($text = '') {
     976    echo get_cancel_comment_reply_link($text);
    951977}
    952978
     
    11041130
    11051131        <div class="reply">
    1106         <?php echo comment_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']))) ?>
    11071133        </div>
    11081134        <?php if ( 'ul' == $args['style'] ) : ?>
  • trunk/wp-includes/cron.php

    r9403 r9406  
    179179        return;
    180180
    181     // WPCOM: Use SERVER_ADDR
    182     //$cron_url = get_option( 'siteurl' ) . '/wp-cron.php?check=' . wp_hash('187425');
    183181    $cron_url = 'http://' . $_SERVER['SERVER_ADDR'] . '/wp-cron.php?check=' . wp_hash('187425');
    184182    /*
Note: See TracChangeset for help on using the changeset viewer.