[wp-trac] [WordPress Trac] #17019: context arg for WP_Query filter application

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 8 17:22:04 UTC 2011


#17019: context arg for WP_Query filter application
-------------------------+------------------------------
 Reporter:  kevinB       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by scribu):

 That might be an idea.

 Correctly handling WP_Query hooks has got to be the most error-prone task
 in WP development that I know of, precisely because they can affect every
 single instance.

 Note that this would have to extend to all hooks: 'parse_query',
 'pre_get_posts', 'the_posts' etc.

 Important consideration: correctly handling WP_Queries and/or hooks
 without a context.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17019#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list