[wp-hackers] weird admin pages list search behaviour

Steve Taylor steve at sltaylor.co.uk
Wed Jan 26 21:33:11 UTC 2011


Hi,

I'm getting some weirdness on the Pages listing in WP admin, when I search.

There's a page called About, but when I search for "about" nothing
comes up. It does come back when you search for any word in the
content.

I thought this was the issue, so I was going to hook into posts_where
and change the search from the content to the title. But the $where
parameter being currently used returns this:

AND (((wp_posts.post_title LIKE '%about%') OR (wp_posts.post_content
LIKE '%about%')))  AND wp_posts.post_type = 'page' AND
(wp_posts.post_status = 'publish' OR wp_posts.post_status = 'future'
OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending'
OR wp_posts.post_status = 'private')

I thought it might be about case sensitivity, but it isn't.

I'm stumped. Anyone else had this?

cheers,

Steve


More information about the wp-hackers mailing list