diff --git wp-admin/includes/class-wp-posts-list-table.php wp-admin/includes/class-wp-posts-list-table.php
index e623ab5..72388e3 100644
|
|
class WP_Posts_List_Table extends WP_List_Table { |
272 | 272 | |
273 | 273 | if ( post_type_supports( $post_type, 'author' ) ) |
274 | 274 | $posts_columns['author'] = __( 'Author' ); |
| 275 | |
| 276 | if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) |
| 277 | $posts_columns['format'] = _x( 'Format', 'post format' ); |
275 | 278 | |
276 | 279 | if ( empty( $post_type ) || is_object_in_taxonomy( $post_type, 'category' ) ) |
277 | 280 | $posts_columns['categories'] = __( 'Categories' ); |
… |
… |
class WP_Posts_List_Table extends WP_List_Table { |
663 | 666 | ?></td> |
664 | 667 | <?php |
665 | 668 | break; |
| 669 | |
| 670 | case 'format': |
| 671 | ?> |
| 672 | <td <?php echo $attributes ?>><?php |
| 673 | if ( get_post_format( $post->ID ) ) |
| 674 | echo get_post_format_string( get_post_format( $post->ID ) ); |
| 675 | ?></td> |
| 676 | <?php |
| 677 | break; |
666 | 678 | |
667 | 679 | default: |
668 | 680 | ?> |
diff --git wp-admin/includes/template.php wp-admin/includes/template.php
index b345c36..14fe725 100644
|
|
function get_hidden_columns( $screen ) { |
254 | 254 | if ( is_string( $screen ) ) |
255 | 255 | $screen = convert_to_screen( $screen ); |
256 | 256 | |
257 | | return (array) get_user_option( 'manage' . $screen->id . 'columnshidden' ); |
| 257 | $hidden = get_user_option( 'manage' . $screen->id . 'columnshidden' ); |
| 258 | |
| 259 | // Hide columns by default |
| 260 | if ( ! is_array( $hidden ) ) { |
| 261 | if ( 'edit' == $screen->base && current_theme_supports( 'post-formats' ) && post_type_supports( $screen->post_type, 'post-formats' ) ) |
| 262 | $hidden = array( 'format' ); |
| 263 | |
| 264 | $hidden = apply_filters('default_hidden_columns', (array) $hidden, $screen); |
| 265 | } |
| 266 | |
| 267 | return $hidden; |
258 | 268 | } |
259 | 269 | |
260 | 270 | // adds hidden fields with the data for use in the inline editor for posts and pages |
… |
… |
function _post_states($post) { |
1646 | 1656 | echo "<span class='post-state'>$state$sep</span>"; |
1647 | 1657 | } |
1648 | 1658 | } |
1649 | | |
1650 | | if ( get_post_format( $post->ID ) ) |
1651 | | echo ' - <span class="post-state-format">' . get_post_format_string( get_post_format( $post->ID ) ) . '</span>'; |
1652 | 1659 | } |
1653 | 1660 | |
1654 | 1661 | /** |