[wp-hackers] posts_where and admin interface

Jennifer Hodgdon yahgrp at poplarware.com
Tue Feb 10 15:49:37 GMT 2009


Yes... posts_where is a very low-level filter on the DB query's WHERE 
clause, inside the base-level query posts code that *every* post query 
uses, including those from admin screens.

So it is applied everywhere, but your plugin putting an if( !is admin) 
inside its function is a good idea to get around that. Maybe suggest 
that to the Search Everywhere author as well, if it is causing you 
admin screen headaches?

    --Jennifer

Glenn Ansley wrote:
> Does anyone know if the posts_where filter is supposed to be applied
> to the admin searches? (wp-admin/edit.php) [...]

-- 
Jennifer Hodgdon * Poplar ProductivityWare
www.poplarware.com

Drupal/WordPress Sites, Themes, Modules/Plugins
Custom Web Programming, Web Databases
PHP, Perl, MySQL, JavaScript, XML, AJAX



More information about the wp-hackers mailing list