Make WordPress Core

Changeset 11724


Ignore:
Timestamp:
07/20/2009 01:41:05 AM (16 years ago)
Author:
ryan
Message:

esc_url() for ()

File:
1 edited

Legend:

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

    r11723 r11724  
    821821
    822822    /**
    823      * Raw comment author information fetched from the comment cookies.
     823     * Comment author information fetched from the comment cookies.
    824824     *
    825825     * @uses wp_get_current_commenter()
     
    828828
    829829    /**
    830      * The name of the current comment author escaped for use in attributes.  Use
    831      * wp_get_current_commenter() to get the raw value.
     830     * The name of the current comment author escaped for use in attributes.
    832831     */
    833     $comment_author = $commenter['comment_author'];
     832    $comment_author = $commenter['comment_author']; // Escaped by sanitize_comment_cookies()
    834833
    835834    /**
    836      * The email address of the current comment author escaped for use in attributes.  Use
    837      * wp_get_current_commenter() to get the raw value.
     835     * The email address of the current comment author escaped for use in attributes.
    838836     */
    839     $comment_author_email = $commenter['comment_author_email'];
     837    $comment_author_email = $commenter['comment_author_email'];  // Escaped by sanitize_comment_cookies()
    840838
    841839    /**
    842      * The url of the current comment author escaped for use in attributes.  Use
    843      * wp_get_current_commenter() to get the raw value.
     840     * The url of the current comment author escaped for use in attributes.
    844841     */
    845     $comment_author_url = $commenter['comment_author_url'];
     842    $comment_author_url = esc_url($commenter['comment_author_url']);
    846843
    847844    /** @todo Use API instead of SELECTs. */
Note: See TracChangeset for help on using the changeset viewer.