Make WordPress Core


Ignore:
Timestamp:
09/19/2011 05:02:58 PM (15 years ago)
Author:
duck_
Message:

Add post formats to quick edit and bulk edit. Fixes #18083.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r18706 r18722  
    988988                        </div>
    989989
     990        <?php if ( post_type_supports( $screen->post_type, 'post-formats' ) && current_theme_supports( 'post-formats' ) ) :
     991                $post_formats = get_theme_support( 'post-formats' );
     992                if ( is_array( $post_formats[0] ) ) : ?>
     993                        <div class="inline-edit-group">
     994                                <label class="alignleft" for="post_format">
     995                                <span class="title"><?php _e( 'Post Format' ); ?></span>
     996                                <select name="post_format" id="post_format">
     997                                <?php if ( $bulk ) : ?>
     998                                        <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
     999                                <?php endif; ?>
     1000                                        <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option>
     1001                                <?php foreach ( $post_formats[0] as $format ): ?>
     1002                                        <option value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option>
     1003                                <?php endforeach; ?>
     1004                                </select></label>
     1005                        </div>
     1006                <?php endif; ?>
     1007        <?php endif; // post-formats ?>
     1008
    9901009                </div></fieldset>
    9911010
Note: See TracChangeset for help on using the changeset viewer.