[wp-trac] [WordPress Trac] #18522: Search using double quotes stopped working at v3.1
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 26 12:32:36 UTC 2011
#18522: Search using double quotes stopped working at v3.1
--------------------------+------------------------------
Reporter: kizora | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Changes (by kizora):
* keywords: reporter-feedback =>
Comment:
Ok, I've had a practice with the debug bar on a localhost version of the
website.
The query used is
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND
(((wp_posts.post_title LIKE '%Swimming Pool%') OR (wp_posts.post_content
LIKE '%Swimming Pool%'))) AND wp_posts.post_type IN ('post', 'page',
'attachment') AND (wp_posts.post_status = 'publish' OR
wp_posts.post_author = 1 AND wp_posts.post_status = 'private') ORDER BY
wp_posts.post_date DESC LIMIT 0, 10
and that finds 10 rows.
I'll try and get up early tomorrow and set the live website back to v3.1
and install and run the debug bar on the search and see what sql it runs.
Just to confirm - I don't need to define savequeries in wp-config?
Cheers
Chris
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18522#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list