Always add in the current post format, in case the theme was switched to one that does not support it. props anderswc. fixes #15393. see #14746

git-svn-id: https://develop.svn.wordpress.org/trunk@16316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2010-11-12 04:21:17 +00:00
parent d3684a509d
commit 2834d62548

View File

@ -163,6 +163,9 @@ if ( is_array( $post_formats[0] ) ) :
if ( !$post_format )
$post_format = '0';
$post_format_display = get_post_format_string( $post_format );
// Add in the current one if it isn't there yet, in case the current theme doesn't support it
if ( $post_format && !in_array( $post_format, $post_formats[0] ) )
$post_formats[0][] = $post_format;
?>
<div class="misc-pub-section" id="post-formats"><label for="post-format"><?php _e( 'Format:' ); ?></label>