WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #18475, comment 4


Ignore:
Timestamp:
08/18/11 21:29:40 (3 years ago)
Author:
t31os_
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18475, comment 4

    v1 v2  
    1 Should the global be getting filled with an array of post types anyway? I've always been under the impression it would(or should, perhaps?) 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' )`... 
     1Should the global be getting filled with an array of post types anyway? I've always been under the impression it would(or should, perhaps?) contain a singular string value denoting the type of post type page you are viewing admin side, ie. if i'm managing a "book" post type, that value is naturally "book", and not necessarily `array( 'book' )`... 
    22 
    33I 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?