Make WordPress Core

Changeset 20195


Ignore:
Timestamp:
03/15/2012 05:19:30 PM (15 years ago)
Author:
nacin
Message:

Change 'Post Format' bulk/quick edit label to 'Format'. Consistent with the UI and prevents word wrapping. Tidy logic. see #20245.

File:
1 edited

Legend:

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

    r20194 r20195  
    10021002                        <div class="inline-edit-group">
    10031003                                <label class="alignleft" for="post_format">
    1004                                 <span class="title"><?php _e( 'Post Format' ); ?></span>
     1004                                <span class="title"><?php _ex( 'Format', 'post format' ); ?></span>
    10051005                                <select name="post_format">
    10061006                                <?php if ( $bulk ) : ?>
    … …  
    10091009                                        <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option>
    10101010                                <?php foreach ( $all_post_formats as $slug => $format ) :
    1011                                         $supported = in_array( $slug, $post_formats[0] );
    1012                                         if ( $bulk && ! $supported )
     1011                                        $unsupported = ! in_array( $slug, $post_formats[0] );
     1012                                        if ( $bulk && $unsupported )
    10131013                                                continue;
    10141014                                        ?>
    1015                                         <option value="<?php echo esc_attr( $slug ); ?>"<?php if ( ! $supported ) echo ' class="unsupported"'; ?>><?php echo esc_html( $format ); ?></option>
     1015                                        <option value="<?php echo esc_attr( $slug ); ?>"<?php if ( $unsupported ) echo ' class="unsupported"'; ?>><?php echo esc_html( $format ); ?></option>
    10161016                                <?php endforeach; ?>
    10171017                                </select></label>
Note: See TracChangeset for help on using the changeset viewer.