Change 'Post Format' bulk/quick edit label to 'Format'. Consistent with the UI and prevents word wrapping. Tidy logic. see #20245.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df4ef64baf
commit
0fdd30d5f1
|
@ -1001,18 +1001,18 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
unset( $all_post_formats['standard'] ); ?>
|
||||
<div class="inline-edit-group">
|
||||
<label class="alignleft" for="post_format">
|
||||
<span class="title"><?php _e( 'Post Format' ); ?></span>
|
||||
<span class="title"><?php _ex( 'Format', 'post format' ); ?></span>
|
||||
<select name="post_format">
|
||||
<?php if ( $bulk ) : ?>
|
||||
<option value="-1"><?php _e( '— No Change —' ); ?></option>
|
||||
<?php endif; ?>
|
||||
<option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option>
|
||||
<?php foreach ( $all_post_formats as $slug => $format ) :
|
||||
$supported = in_array( $slug, $post_formats[0] );
|
||||
if ( $bulk && ! $supported )
|
||||
$unsupported = ! in_array( $slug, $post_formats[0] );
|
||||
if ( $bulk && $unsupported )
|
||||
continue;
|
||||
?>
|
||||
<option value="<?php echo esc_attr( $slug ); ?>"<?php if ( ! $supported ) echo ' class="unsupported"'; ?>><?php echo esc_html( $format ); ?></option>
|
||||
<option value="<?php echo esc_attr( $slug ); ?>"<?php if ( $unsupported ) echo ' class="unsupported"'; ?>><?php echo esc_html( $format ); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select></label>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue