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

WordPress Trac noreply at wordpress.org
Sun Dec 16 05:23:19 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:  General       |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by nacin):

 I was the committing developer on [21861]. You're right, that's the wrong
 approach.

 Can we do `$post_type = reset( $post_types );`? It's a more common pattern
 for us than list(), which we usually use for more complex situations.

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


More information about the wp-trac mailing list