[wp-trac] [WordPress Trac] #17620: get_post_types check for supporting title
WordPress Trac
wp-trac at lists.automattic.com
Mon May 30 16:52:54 UTC 2011
#17620: get_post_types check for supporting title
--------------------------+-----------------------------
Reporter: GaryJ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.2
Severity: major | Keywords:
--------------------------+-----------------------------
In 3.2-beta2-18055, a print_r of:
`get_post_types();`
correctly returns:
`Array ( [post] => post [page] => page [attachment] => attachment
[revision] => revision [nav_menu_item] => nav_menu_item [surl] => surl
[book] => book )`
(Default post types, plus a couple of my extra ones).
However, a print_r of:
`get_post_types( array( 'supports' => array( 'title' ) ) );`
returns:
`Array ( [attachment] => attachment [revision] => revision [nav_menu_item]
=> nav_menu_item )`
instead of the ones that actually have support for the title feature.
The same result occurs when checking for editor support. I've tried my
registered post types with and without title support, yet neither seem to
appear when filtering by title support, not doe post or page, which I
would also expect to be returned.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17620>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list