[wp-trac] [WordPress Trac] #16347: is_post_type_archive doesn't return correctly outside of loop

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 22 19:31:56 UTC 2011


#16347: is_post_type_archive doesn't return correctly outside of loop
----------------------------------------------+------------------
 Reporter:  blt4                              |       Owner:
     Type:  defect (bug)                      |      Status:  new
 Priority:  normal                            |   Milestone:  3.1
Component:  Post Types                        |     Version:  3.1
 Severity:  normal                            |  Resolution:
 Keywords:  is_post_type_archive, post types  |
----------------------------------------------+------------------
Changes (by nacin):

 * milestone:  Awaiting Review => 3.1


Comment:

 Hmm. I haven't a clue why I wrote it that way originally. It should use
 get_queried_object().

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


More information about the wp-trac mailing list