[wp-trac] [WordPress Trac] #10886: WordPress should not unnecessarily query posts at page load

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 8 02:27:20 UTC 2009


#10886: WordPress should not unnecessarily query posts at page load
--------------------------+-------------------------------------------------
 Reporter:  junsuijin     |       Owner:  junsuijin               
     Type:  defect (bug)  |      Status:  new                     
 Priority:  normal        |   Milestone:  2.9                     
Component:  Optimization  |     Version:  2.8.4                   
 Severity:  normal        |    Keywords:  has-patch, needs-testing
--------------------------+-------------------------------------------------

Comment(by junsuijin):

 I know that BuddyPress hooks to 'wp' in several places. Not doing the 'wp'
 action simply because WordPress has not run its initial post-grabbing
 queries, will also break any other plugins that rely on that action hook.
 Which is less desirable:
 1) "[not] calling the wp hook from two different places?"
 2) forcing those who choose to return false to the 'run_wp_main' filter to
 do_action_ref_array( 'wp', array( (object) array() ) ) (likely in whatever
 function they use to set the 'run_wp_main' filter to false)?

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


More information about the wp-trac mailing list