[wp-trac] [WordPress Trac] #15443: Allow add_theme_support( 'post-formats' ) to add support for all registered formats by default

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 16 19:15:23 UTC 2010


#15443: Allow add_theme_support( 'post-formats' ) to add support for all registered
formats by default
-------------------------+--------------------------------------------------
 Reporter:  ev3rywh3re   |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  3.1            
 Severity:  normal       |    Keywords:  post-formats   
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15443>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list