| 1 | Index: wp-admin/includes/template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/template.php (revision 23391) |
|---|
| 4 | +++ wp-admin/includes/template.php (working copy) |
|---|
| 5 | @@ -1449,8 +1449,6 @@ |
|---|
| 6 | } |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | - if ( get_post_format( $post->ID ) ) |
|---|
| 10 | - echo ' - <span class="post-state-format">' . get_post_format_string( get_post_format( $post->ID ) ) . '</span>'; |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | function _media_states( $post ) { |
|---|
| 14 | Index: wp-admin/includes/class-wp-posts-list-table.php |
|---|
| 15 | =================================================================== |
|---|
| 16 | --- wp-admin/includes/class-wp-posts-list-table.php (revision 23391) |
|---|
| 17 | +++ wp-admin/includes/class-wp-posts-list-table.php (working copy) |
|---|
| 18 | @@ -259,6 +259,9 @@ |
|---|
| 19 | if ( post_type_supports( $post_type, 'author' ) ) |
|---|
| 20 | $posts_columns['author'] = __( 'Author' ); |
|---|
| 21 | |
|---|
| 22 | + if ( post_type_supports( $post_type, 'post-formats' ) ) |
|---|
| 23 | + $posts_columns['format'] = _x( 'Format', 'post format' ); |
|---|
| 24 | + |
|---|
| 25 | $taxonomies = array(); |
|---|
| 26 | |
|---|
| 27 | $taxonomies = get_object_taxonomies( $post_type, 'objects' ); |
|---|
| 28 | @@ -646,6 +649,17 @@ |
|---|
| 29 | <?php |
|---|
| 30 | break; |
|---|
| 31 | |
|---|
| 32 | + case 'format': |
|---|
| 33 | + ?> |
|---|
| 34 | + <td <?php echo $attributes ?>><?php |
|---|
| 35 | + if ( get_post_format( $post->ID ) ) |
|---|
| 36 | + echo get_post_format_string( get_post_format( $post->ID ) ); |
|---|
| 37 | + else |
|---|
| 38 | + echo get_post_format_string( 'standard' ); |
|---|
| 39 | + ?></td> |
|---|
| 40 | + <?php |
|---|
| 41 | + break; |
|---|
| 42 | + |
|---|
| 43 | default: |
|---|
| 44 | if ( 'categories' == $column_name ) |
|---|
| 45 | $taxonomy = 'category'; |
|---|