Ticket #16047: 16047.4.diff
File 16047.4.diff, 2.1 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/class-wp-posts-list-table.php
258 258 259 259 if ( post_type_supports( $post_type, 'author' ) ) 260 260 $posts_columns['author'] = __( 'Author' ); 261 262 if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) 263 $posts_columns['format'] = _x( 'Format', 'post format' ); 261 264 262 265 $taxonomies = array(); 263 266 … … 645 648 ?></td> 646 649 <?php 647 650 break; 651 652 case 'format': 653 ?> 654 <td <?php echo $attributes ?>><?php 655 if ( get_post_format( $post->ID ) ) 656 echo get_post_format_string( get_post_format( $post->ID ) ); 657 ?></td> 658 <?php 659 break; 648 660 649 661 default: 650 662 if ( 'categories' == $column_name ) -
wp-admin/includes/screen.php
38 38 if ( is_string( $screen ) ) 39 39 $screen = convert_to_screen( $screen ); 40 40 41 return (array) get_user_option( 'manage' . $screen->id . 'columnshidden' ); 41 $hidden = get_user_option( 'manage' . $screen->id . 'columnshidden' ); 42 43 // Hide columns by default 44 if ( ! is_array( $hidden ) ) { 45 if ( 'edit' == $screen->base && current_theme_supports( 'post-formats' ) && post_type_supports( $screen->post_type, 'post-formats' ) ) 46 $hidden = array( 'format' ); 47 48 $hidden = apply_filters('default_hidden_columns', (array) $hidden, $screen); 49 } 50 51 return $hidden; 42 52 } 43 53 44 54 /** -
wp-admin/includes/template.php
1449 1449 } 1450 1450 } 1451 1451 1452 if ( get_post_format( $post->ID ) )1453 echo ' - <span class="post-state-format">' . get_post_format_string( get_post_format( $post->ID ) ) . '</span>';1454 1452 } 1455 1453 1456 1454 function _media_states( $post ) {