[wp-trac] Re: [WordPress Trac] #9425: The various $is_* variables in $WP_Query should only be set on the very first query call.

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 3 01:00:14 GMT 2009


#9425: The various $is_* variables in $WP_Query should only be set on the very
first query call.
--------------------------------------+-------------------------------------
 Reporter:  mtg169                    |        Owner:  anonymous
     Type:  defect (bug)              |       Status:  reopened 
 Priority:  high                      |    Milestone:  2.8      
Component:  General                   |      Version:  2.7.1    
 Severity:  major                     |   Resolution:           
 Keywords:  needs-patch dev-feedback  |  
--------------------------------------+-------------------------------------

Comment(by Denis-de-Bernardy):

 Oh, don't get me wrong, I was merely pointing out that he was highlighting
 a genuine issue in the WP API. The immediate closing as wontfix had me
 chew on the number of times where I went "This WP revision will introduce
 scores of bugs, but to hell with it".

 > Maybe this bug should be tagged "architectural-changes"?

 Probably. Imo, merely generating a new WP_Query object (while keeping the
 $wp_the_query object around for the WP internals) on every call to
 query_posts() would fix this. But what do I know... I've only been using
 WP for years. ;-)

 D.

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


More information about the wp-trac mailing list