Changeset 19011 for trunk/wp-admin/includes/class-wp-posts-list-table.php
- Timestamp:
- 10/19/2011 05:48:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r19010 r19011 999 999 <?php if ( post_type_supports( $screen->post_type, 'post-formats' ) && current_theme_supports( 'post-formats' ) ) : 1000 1000 $post_formats = get_theme_support( 'post-formats' ); 1001 if ( is_array( $post_formats[0] ) ) : ?> 1001 if ( isset( $post_formats[0] ) && is_array( $post_formats[0] ) ) : 1002 $all_post_formats = get_post_format_strings(); ?> 1002 1003 <div class="inline-edit-group"> 1003 1004 <label class="alignleft" for="post_format"> 1004 1005 <span class="title"><?php _e( 'Post Format' ); ?></span> 1005 <select name="post_format" id="post_format">1006 <select name="post_format"> 1006 1007 <?php if ( $bulk ) : ?> 1007 1008 <option value="-1"><?php _e( '— No Change —' ); ?></option> 1008 1009 <?php endif; ?> 1009 1010 <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option> 1010 <?php foreach ( $post_formats[0] as $format ): ?> 1011 <option value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> 1012 <?php endforeach; ?> 1011 <?php foreach ( $all_post_formats as $slug => $format ): 1012 if ( $slug != 'standard' ) : ?> 1013 <option value="<?php echo esc_attr( $slug ); ?>"<?php if ( ! in_array( $slug, $post_formats[0] ) ) echo ' class="unsupported"'; ?>><?php echo esc_html( $format ); ?></option> 1014 <?php endif; 1015 endforeach; ?> 1013 1016 </select></label> 1014 1017 </div>
Note: See TracChangeset
for help on using the changeset viewer.