[wp-trac] [WordPress Trac] #17620: get_post_types check for supporting title
WordPress Trac
wp-trac at lists.automattic.com
Mon May 30 17:40:29 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 | Resolution:
Keywords: close |
--------------------------+------------------------------
Changes (by greuben):
* keywords: => close
Comment:
{{{
get_post_types( array( 'supports' => array( 'title' ) ) );
}}}
The default operator for get_post_types is 'AND' so it will match post
types which only support title
Use 'OR' operator if you want all post types that support titles.
{{{
get_post_types( array( 'supports' => array( 'title' ) ), 'names', 'or' )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17620#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list