Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11725 r11435  
    195195    global $comment;
    196196    $url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
    197     $url = esc_url( $url, array('http', 'https') );
    198197    return apply_filters('get_comment_author_url', $url);
    199198}
     
    819818
    820819    $req = get_option('require_name_email');
    821 
    822     /**
    823      * Comment author information fetched from the comment cookies.
    824      *
    825      * @uses wp_get_current_commenter()
    826      */
    827820    $commenter = wp_get_current_commenter();
    828 
    829     /**
    830      * The name of the current comment author escaped for use in attributes.
    831      */
    832     $comment_author = $commenter['comment_author']; // Escaped by sanitize_comment_cookies()
    833 
    834     /**
    835      * The email address of the current comment author escaped for use in attributes.
    836      */
    837     $comment_author_email = $commenter['comment_author_email'];  // Escaped by sanitize_comment_cookies()
    838 
    839     /**
    840      * The url of the current comment author escaped for use in attributes.
    841      */
    842     $comment_author_url = esc_url($commenter['comment_author_url']);
     821    extract($commenter, EXTR_SKIP);
    843822
    844823    /** @todo Use API instead of SELECTs. */
Note: See TracChangeset for help on using the changeset viewer.