Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11435 r11725  
    195195    global $comment;
    196196    $url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
     197    $url = esc_url( $url, array('http', 'https') );
    197198    return apply_filters('get_comment_author_url', $url);
    198199}
     
    818819
    819820    $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     */
    820827    $commenter = wp_get_current_commenter();
    821     extract($commenter, EXTR_SKIP);
     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']);
    822843
    823844    /** @todo Use API instead of SELECTs. */
Note: See TracChangeset for help on using the changeset viewer.