mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 00:52:55 +01:00
strip slashes before preparing to avoid double escaping
git-svn-id: https://develop.svn.wordpress.org/trunk@9105 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7a05a094f0
commit
680d9c369f
@ -377,6 +377,10 @@ function get_post_to_edit( $id ) {
|
|||||||
function post_exists($title, $content = '', $post_date = '') {
|
function post_exists($title, $content = '', $post_date = '') {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
|
$title = stripslashes($title);
|
||||||
|
$content = stripslashes($content);
|
||||||
|
$post_date = stripslashes($post_date);
|
||||||
|
|
||||||
if (!empty ($post_date))
|
if (!empty ($post_date))
|
||||||
$post_date = $wpdb->prepare("AND post_date = %s", $post_date);
|
$post_date = $wpdb->prepare("AND post_date = %s", $post_date);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user