[wp-trac] [WordPress Trac] #22956: Unpredictable template loading when multiple post types are involved

WordPress Trac noreply at wordpress.org
Sat Dec 29 08:10:45 UTC 2012


#22956: Unpredictable template loading when multiple post types are involved
------------------------------+--------------------
 Reporter:  scribu            |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.5.1
Component:  Post Types        |     Version:  3.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by SergeyBiryukov):

 Replying to [comment:11 nacin]:
 > Considering we're currently trying to load `archive-Array.php` and
 `archive-.php`, the proper thing to do here would be to restore 3.4
 behavior.

 `archive-Array.php` was the 3.4 behavior (which #20867 attempted to fix).

 [attachment:22956.3.diff] looks sane to me.

 Replying to [comment:12 wonderboymusic]:
 > this is like doing a WP_Query with 'any' and then loading the archive
 for the post_type of the first item.

 This seems to describe the current behaviour, which
 [attachment:22956.3.diff] fixes.

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


More information about the wp-trac mailing list