[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 21:27:59 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 |
--------------------------+--------------------
Comment (by t31os_):
Should the global be getting filled with an array of post types anyway?
I've always been under the impression is would contain a singular string
value denoting the type of post type page you are viewing admin side, ie.
if i'm managing a "books" post type, that value is naturally "book", and
not necessarily `array( 'book' )`...
I can understand why `WP_Query` supports an array(for grabbing a result
set of more than 1 post type), but should the global also contain an array
of post types?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18475#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list