Changeset 27762
- Timestamp:
- 03/27/2014 12:05:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r27667 r27762 1198 1198 <?php 1199 1199 1200 if ( $bulk && post_type_supports( $screen->post_type, 'post-formats' ) ) {1201 $ all_post_formats = get_post_format_strings();1200 if ( $bulk && current_theme_supports( 'post-formats' ) && post_type_supports( $screen->post_type, 'post-formats' ) ) { 1201 $post_formats = get_theme_support( 'post-formats' ); 1202 1202 1203 1203 ?> … … 1206 1206 <select name="post_format"> 1207 1207 <option value="-1"><?php _e( '— No Change —' ); ?></option> 1208 <option value="0"><?php echo get_post_format_string( 'standard' ); ?></option> 1208 1209 <?php 1209 1210 1210 foreach ( $ all_post_formats as $slug =>$format ) {1211 foreach ( $post_formats[0] as $format ) { 1211 1212 ?> 1212 <option value="<?php echo esc_attr( $ slug ); ?>"><?php echo esc_html( $format); ?></option>1213 <option value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> 1213 1214 <?php 1214 1215 }
Note: See TracChangeset
for help on using the changeset viewer.