Changeset 23591 for trunk/wp-includes/comment.php
- Timestamp:
- 03/03/2013 04:30:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r23571 r23591 635 635 if ( isset($_COOKIE['comment_author_'.COOKIEHASH]) ) { 636 636 $comment_author = apply_filters('pre_comment_author_name', $_COOKIE['comment_author_'.COOKIEHASH]); 637 $comment_author = stripslashes($comment_author);637 $comment_author = wp_unslash($comment_author); 638 638 $comment_author = esc_attr($comment_author); 639 639 $_COOKIE['comment_author_'.COOKIEHASH] = $comment_author; … … 642 642 if ( isset($_COOKIE['comment_author_email_'.COOKIEHASH]) ) { 643 643 $comment_author_email = apply_filters('pre_comment_author_email', $_COOKIE['comment_author_email_'.COOKIEHASH]); 644 $comment_author_email = stripslashes($comment_author_email);644 $comment_author_email = wp_unslash($comment_author_email); 645 645 $comment_author_email = esc_attr($comment_author_email); 646 646 $_COOKIE['comment_author_email_'.COOKIEHASH] = $comment_author_email; … … 649 649 if ( isset($_COOKIE['comment_author_url_'.COOKIEHASH]) ) { 650 650 $comment_author_url = apply_filters('pre_comment_author_url', $_COOKIE['comment_author_url_'.COOKIEHASH]); 651 $comment_author_url = stripslashes($comment_author_url);651 $comment_author_url = wp_unslash($comment_author_url); 652 652 $_COOKIE['comment_author_url_'.COOKIEHASH] = $comment_author_url; 653 653 } … … 1263 1263 function wp_insert_comment($commentdata) { 1264 1264 global $wpdb; 1265 extract( stripslashes_deep($commentdata), EXTR_SKIP);1265 extract(wp_unslash($commentdata), EXTR_SKIP); 1266 1266 1267 1267 if ( ! isset($comment_author_IP) ) … … 1503 1503 1504 1504 // Now extract the merged array. 1505 extract( stripslashes_deep($commentarr), EXTR_SKIP);1505 extract(wp_unslash($commentarr), EXTR_SKIP); 1506 1506 1507 1507 $comment_content = apply_filters('comment_save_pre', $comment_content);
Note: See TracChangeset
for help on using the changeset viewer.