Opened 14 years ago
Closed 14 years ago
#15443 closed enhancement (wontfix)
Allow add_theme_support( 'post-formats' ) to add support for all registered formats by default
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Themes | Keywords: | post-formats |
Focuses: | Cc: |
Description
I like post formats, but it allows little self discovery and activation of WordPress approved formats. To discover and activate all the available post formats you can do:
$what_post_formats = array_keys( get_post_format_strings() ); $zero_post_format = array_search( 0, $what_post_formats ); unset( $what_post_formats[$zero_post_format] ); add_theme_support( 'post-formats', $what_post_formats );
That seems a little complicated and un-WordPress like. I'd like to request that calling add_theme_support( 'post-formats' ) without an array would make all approved post formats available.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
I would tend to agree, but this isn't forward-compatible with future formats.