Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#15443 closed enhancement (wontfix)

Allow add_theme_support( 'post-formats' ) to add support for all registered formats by default

Reported by: ev3rywh3re Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Themes Keywords: post-formats
Focuses: Cc:


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)

post_formats_16405_meta-boxes.php (2.2 KB) - added by ev3rywh3re 5 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nacin
5 years ago

I would tend to agree, but this isn't forward-compatible with future formats.

#2 @nacin
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Explicit is better.

Note: See TracTickets for help on using tickets.