[wp-trac] [WordPress Trac] #16949: Custom post types: error on page if query contains multiple post types

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 22 18:36:06 UTC 2011


#16949: Custom post types: error on page if query contains multiple post types
--------------------------+------------------
 Reporter:  mastermind    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by aaroncampbell):

 It looks like this is caused by the call to `is_post_type_hierarchical()`
 in `wp_old_slug_redirect()`.  It just passes through what it gets from
 `get_query_var('post_type')` which can be an array.  The check was added
 in [16818] and [16819] to fix #15140

 It seems like we should just check for an array, loop through, and return
 if ANY of them is hierarchical?  I'll test it an put up a patch in a few
 minutes.

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


More information about the wp-trac mailing list