diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index e6d5e3bcfe..54a47c2e5c 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -377,6 +377,10 @@ function get_post_to_edit( $id ) { function post_exists($title, $content = '', $post_date = '') { global $wpdb; + $title = stripslashes($title); + $content = stripslashes($content); + $post_date = stripslashes($post_date); + if (!empty ($post_date)) $post_date = $wpdb->prepare("AND post_date = %s", $post_date);