Ticket #27187: 27187.diff
File 27187.diff, 1.1 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/class-wp-posts-list-table.php
1048 1048 <?php 1049 1049 1050 1050 if ( $bulk && post_type_supports( $screen->post_type, 'post-formats' ) ) { 1051 $ all_post_formats = get_post_format_strings();1051 $post_formats = get_theme_support( 'post-formats' ); 1052 1052 1053 1053 ?> 1054 1054 <label class="alignleft" for="post_format"> 1055 1055 <span class="title"><?php _ex( 'Format', 'post format' ); ?></span> 1056 1056 <select name="post_format"> 1057 1057 <option value="-1"><?php _e( '— No Change —' ); ?></option> 1058 <option value="standard">Standard</option> 1058 1059 <?php 1059 1060 1060 foreach ( $ all_post_formats as $slug =>$format ) {1061 foreach ( $post_formats[0] as $format ) { 1061 1062 ?> 1062 <option value="<?php echo esc_attr( $ slug ); ?>"><?php echo esc_html( $format); ?></option>1063 <option value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> 1063 1064 <?php 1064 1065 } 1065 1066