From 5540c0b8dbd04cfa1654719be3b32702e9bdb4bd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 28 Dec 2015 19:07:28 +0000 Subject: [PATCH] Import: Add a missing space to `post_exists()`. The lack of space resulted in SQL error when searching for posts by content. Props yetAnotherDaniel, johnbillion. Fixes #35246. Built from https://develop.svn.wordpress.org/trunk@36113 git-svn-id: http://core.svn.wordpress.org/trunk@36078 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 51ce4c0cf7..c169bd7541 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -687,7 +687,7 @@ function post_exists($title, $content = '', $date = '') { } if ( !empty ( $content ) ) { - $query .= 'AND post_content = %s'; + $query .= ' AND post_content = %s'; $args[] = $post_content; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 92a15fd913..4cd8725f3e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36112'; +$wp_version = '4.5-alpha-36113'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.