[wp-trac] Re: [WordPress Trac] #4070: rewrite get_posts to call
WP_Query->get_posts, using temporary filters as needed
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 2 20:24:17 GMT 2007
#4070: rewrite get_posts to call WP_Query->get_posts, using temporary filters as
needed
-------------------------+--------------------------------------------------
Reporter: kevinB | Owner: markjaquith
Type: enhancement | Status: new
Priority: normal | Milestone: 2.2
Component: General | Version:
Severity: normal | Resolution:
Keywords: get_posts |
-------------------------+--------------------------------------------------
Comment (by ryan):
get_posts() is usually used specifically because it avoids the hooks in
WP_Query. Those hooks can screw things up when you want what is really in
the DB. get_posts() also avoids the parse query overhead. Maybe the
query guts in WP_Query::get_posts() could be moved into ::get_posts()
which would then be called from WP_Query::get_posts(). That way the
actual DB query functionality isn't duplicated. Don't know how doable
that is.
--
Ticket URL: <http://trac.wordpress.org/ticket/4070#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list