[wp-trac] [WordPress Trac] #13945: Calling setup_postdata prior to wp() being run breaks the query.

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 17 13:56:40 UTC 2010


#13945: Calling setup_postdata prior to wp() being run breaks the query.
--------------------------+-------------------------------------------------
 Reporter:  prettyboymp   |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 I was writing code to register sidebars based on a posts of a custom post
 type.  While doing this, I noticed that the manage posts and manage pages
 screen was showing "No pages found".

 After looking into, I found that there is a collision with the global
 variable $day.  Its set as a public query_var, but at the same time is
 used many other places with a different purpose.

 My thoughts are that its safer to change the name of the global $day than
 to change the query var.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13945>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list