[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 20:01:54 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:  has-patch     |
--------------------------+------------------
Changes (by scribu):

 * keywords:  is_post_type_archive, post types => has-patch


Comment:

 Replying to [comment:1 nacin]:
 > Hmm. I haven't a clue why I wrote it that way originally. It should use
 get_queried_object().

 I was wondering about that too.

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


More information about the wp-trac mailing list