X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5964d2279dc52bdfe105f9bfa17e04337d47a3fa..e0bf0ae6a149125bedfeaf344114a97d5864e74d:/wp-mail.php?ds=sidebyside diff --git a/wp-mail.php b/wp-mail.php index 5685b3ac..27290b11 100644 --- a/wp-mail.php +++ b/wp-mail.php @@ -202,7 +202,7 @@ for ( $i = 1; $i <= $count; $i++ ) { $post_category = array(get_option('default_email_category')); $post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status'); - $post_data = add_magic_quotes($post_data); + $post_data = wp_slash($post_data); $post_ID = wp_insert_post($post_data); if ( is_wp_error( $post_ID ) )