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: http://svn.automattic.com/wordpress/trunk@16316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75d045de8e
commit
82ea187e58
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue