WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/19/2013 05:46:25 PM (6 years ago)
Author:
helen
Message:

Restore post formats to bulk editing. props azaozz, SergeyBiryukov, DrewAPicture. fixes #24096.

File:
1 edited

Legend:

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

    r24985 r25505  
    10351035
    10361036            </div>
     1037
     1038    <?php
     1039
     1040    if ( $bulk && post_type_supports( $screen->post_type, 'post-formats' ) ) {
     1041        $all_post_formats = get_post_format_strings();
     1042
     1043        ?>
     1044        <label class="alignleft" for="post_format">
     1045        <span class="title"><?php _ex( 'Format', 'post format' ); ?></span>
     1046        <select name="post_format">
     1047            <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
     1048            <?php
     1049
     1050            foreach ( $all_post_formats as $slug => $format ) {
     1051                ?>
     1052                <option value="<?php echo esc_attr( $slug ); ?>"><?php echo esc_html( $format ); ?></option>
     1053                <?php
     1054            }
     1055
     1056            ?>
     1057        </select></label>
     1058    <?php
     1059
     1060    }
     1061
     1062    ?>
     1063
    10371064        </div></fieldset>
    10381065
Note: See TracChangeset for help on using the changeset viewer.