[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
Tue Apr 3 04:13:38 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 kevinB):

 I know this patch was a little presumptuous on my part.  Thought it was
 worth a try and I'll take no offense to having it canned or postponed
 indefinitely.  Here are some observations to keep the conversation going.

 There seems to be two sets of competing interest here:

 * features vs. performance

 * empowering plugins vs. guarding against them

 I can see that get_posts is an efficient backdoor for diagnostic/utility
 tasks.  My problem is that it's both unhookable AND a super easy call for
 themes, making it tough for an access control plugin to plug all the
 conventional holes.

 Please consider #4073 as an alternate patch.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4070#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list