WordPress.org

Make WordPress Core

Changeset 27762


Ignore:
Timestamp:
03/27/2014 12:05:14 AM (7 years ago)
Author:
wonderboymusic
Message:

The bulk editor and post format meta box should use the same checks for available post formats.

Props eightface.
Fixes #27187.

File:
1 edited

Legend:

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

    r27667 r27762  
    11981198    <?php
    11991199
    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' );
    12021202
    12031203        ?>
     
    12061206        <select name="post_format">
    12071207            <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
     1208            <option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
    12081209            <?php
    12091210
    1210             foreach ( $all_post_formats as $slug => $format ) {
     1211            foreach ( $post_formats[0] as $format ) {
    12111212                ?>
    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>
    12131214                <?php
    12141215            }
Note: See TracChangeset for help on using the changeset viewer.