Make WordPress Core


Ignore:
Timestamp:
12/28/2015 07:06:05 PM (9 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r36000 r36113  
    688688
    689689    if ( !empty ( $content ) ) {
    690         $query .= 'AND post_content = %s';
     690        $query .= ' AND post_content = %s';
    691691        $args[] = $post_content;
    692692    }
Note: See TracChangeset for help on using the changeset viewer.