[wp-hackers] posts_where and admin interface

Glenn Ansley glenn at glennansley.com
Tue Feb 10 15:35:54 GMT 2009


Hi all,
Does anyone know if the posts_where filter is supposed to be applied
to the admin searches? (wp-admin/edit.php)

I have a very simple plugin that uses the posts_where filter [1]

I noticed that i had to call it inside of a if ( !is_admin() )
conditional or it would screw up the ability to search for posts in
the backend (all searches return empty).
This wasn't a big deal, I just assumed that I didn't understand the
filter previously and added the conditional.

I came across the problem again today with the plugin Search
Everything [2]. Is this related to the posts_where filter and should
it be doing this?

[1] <http://svn.wp-plugins.org/no-sub-category-posts-in-loop/trunk/ft-no-subcats-in-loop.php>
[2] <http://svn.wp-plugins.org/search-everything/tags/5.0/>

Thanks,
Glenn Ansley
Web Design | http://glennansley.com
WP Plugins  | http://fullthrottledevelopment.com


More information about the wp-hackers mailing list