From df4ef64bafeb208255c1fe59e80d1a33259fba75 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 15 Mar 2012 17:17:56 +0000 Subject: [PATCH] Hide unsupported post formats from bulk edit. fixes #20245. git-svn-id: http://svn.automattic.com/wordpress/trunk@20194 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-posts-list-table.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 5e280e807..7473669ab 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -997,7 +997,8 @@ class WP_Posts_List_Table extends WP_List_Table { post_type, 'post-formats' ) && current_theme_supports( 'post-formats' ) ) : $post_formats = get_theme_support( 'post-formats' ); if ( isset( $post_formats[0] ) && is_array( $post_formats[0] ) ) : - $all_post_formats = get_post_format_strings(); ?> + $all_post_formats = get_post_format_strings(); + unset( $all_post_formats['standard'] ); ?>