From 2834d62548bdf8bc16b79a5dd54db5492b112dbf Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 12 Nov 2010 04:21:17 +0000 Subject: [PATCH] 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 --- wp-admin/includes/meta-boxes.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 3895a3ca0e..d5c3dcc4f6 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -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; ?>