esc_url() for (), for 2.8
git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3d3957f592
commit
f1452273f9
|
@ -818,8 +818,28 @@ function comments_template( $file = '/comments.php', $separate_comments = false
|
|||
$file = '/comments.php';
|
||||
|
||||
$req = get_option('require_name_email');
|
||||
|
||||
/**
|
||||
* Comment author information fetched from the comment cookies.
|
||||
*
|
||||
* @uses wp_get_current_commenter()
|
||||
*/
|
||||
$commenter = wp_get_current_commenter();
|
||||
extract($commenter, EXTR_SKIP);
|
||||
|
||||
/**
|
||||
* The name of the current comment author escaped for use in attributes.
|
||||
*/
|
||||
$comment_author = $commenter['comment_author']; // Escaped by sanitize_comment_cookies()
|
||||
|
||||
/**
|
||||
* The email address of the current comment author escaped for use in attributes.
|
||||
*/
|
||||
$comment_author_email = $commenter['comment_author_email']; // Escaped by sanitize_comment_cookies()
|
||||
|
||||
/**
|
||||
* The url of the current comment author escaped for use in attributes.
|
||||
*/
|
||||
$comment_author_url = esc_url($commenter['comment_author_url']);
|
||||
|
||||
/** @todo Use API instead of SELECTs. */
|
||||
if ( $user_ID) {
|
||||
|
|
Loading…
Reference in New Issue