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