[wp-trac] [WordPress Trac] #18475: get_post_type_object is sometimes passed an array

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 18 20:52:55 UTC 2011


#18475: get_post_type_object is sometimes passed an array
--------------------------+--------------------
 Reporter:  t31os_        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Post Types    |     Version:  3.2.1
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by scribu):

 * keywords:  needs-patch => has-patch


Comment:

 It seems to be set somewhere deep in the main query code.

 Workaround is to not use the $post_type global. See
 [attachment:18475.diff].

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


More information about the wp-trac mailing list