From 2fb915f86021693d7ea22440387989bf9f5278da Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 8 Feb 2013 16:10:05 +0000 Subject: [PATCH] Display post formats in the posts list table. props nacin, garyc40, DrewAPicture, wonderboymusic, aaroncampbell. fixes #16047 git-svn-id: http://core.svn.wordpress.org/trunk@23392 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-posts-list-table.php | 14 ++++++++++++++ wp-admin/includes/template.php | 2 -- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 0c0231bc86..542e533abb 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -259,6 +259,9 @@ class WP_Posts_List_Table extends WP_List_Table { if ( post_type_supports( $post_type, 'author' ) ) $posts_columns['author'] = __( 'Author' ); + if ( post_type_supports( $post_type, 'post-formats' ) ) + $posts_columns['format'] = _x( 'Format', 'post format' ); + $taxonomies = array(); $taxonomies = get_object_taxonomies( $post_type, 'objects' ); @@ -646,6 +649,17 @@ class WP_Posts_List_Table extends WP_List_Table { + >ID ) ) + echo get_post_format_string( get_post_format( $post->ID ) ); + else + echo get_post_format_string( 'standard' ); + ?> + ID ) ) - echo ' - ' . get_post_format_string( get_post_format( $post->ID ) ) . ''; } function _media_states( $post ) {