[wp-trac] [WordPress Trac] #17316: Don't 404 on empty post type archives

WordPress Trac wp-trac at lists.automattic.com
Wed May 4 01:23:41 UTC 2011


#17316: Don't 404 on empty post type archives
--------------------------+------------------------------
 Reporter:  jfarthing84   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by markmcwilliams):

 I might be wrong, but shouldn't it be {{{if ( ( is_tag() || is_category()
 || is_tax() || is_author() || is_post_type_archive() ) &&
 $wp_query->get_queried_object() && !is_paged() ) {}}} so that
 {{{is_post_type_archive()}}} is included within the {{{if}}} statement
 like the others? :)

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


More information about the wp-trac mailing list