Changes from trunk/wp-includes/comment-template.php at r11435 to branches/2.8/wp-includes/comment-template.php at r11725
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-includes/comment-template.php
r11435 r11725 195 195 global $comment; 196 196 $url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url; 197 $url = esc_url( $url, array('http', 'https') ); 197 198 return apply_filters('get_comment_author_url', $url); 198 199 } … … 818 819 819 820 $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 */ 820 827 $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']); 822 843 823 844 /** @todo Use API instead of SELECTs. */
Note: See TracChangeset
for help on using the changeset viewer.