From 3acb8fcdf68e11da46f4d02849a538140984643c Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 27 Mar 2014 00:05:14 +0000 Subject: [PATCH] The bulk editor and post format meta box should use the same checks for available post formats. Props eightface. Fixes #27187. git-svn-id: https://develop.svn.wordpress.org/trunk@27762 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-posts-list-table.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index e5e4a81e8c..4190920b2d 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -1197,19 +1197,20 @@ class WP_Posts_List_Table extends WP_List_Table { post_type, 'post-formats' ) ) { - $all_post_formats = get_post_format_strings(); + if ( $bulk && current_theme_supports( 'post-formats' ) && post_type_supports( $screen->post_type, 'post-formats' ) ) { + $post_formats = get_theme_support( 'post-formats' ); ?>