From 80c79e5607651a972cf2221beeb07b0c0e09d0e4 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 1 Dec 2010 12:31:27 +0000 Subject: [PATCH] Don't show the Post Format if the current theme doesn't support them. Fixes #15625. git-svn-id: https://develop.svn.wordpress.org/trunk@16645 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 37a1b8d830..f12a5cfd7e 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1604,7 +1604,7 @@ function _post_states($post) { $post_states[] = _x('Pending', 'post state'); if ( is_sticky($post->ID) ) $post_states[] = __('Sticky'); - if ( get_post_format( $post->ID ) ) + if ( current_theme_supports('post-formats') && get_post_format( $post->ID ) ) $post_states[] = '[' . get_post_format_string( get_post_format( $post->ID ) ) . ']'; $post_states = apply_filters( 'display_post_states', $post_states );