mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
The bulk editor and post format meta box should use the same checks for available post formats.
Props eightface. Fixes #27187. Built from https://develop.svn.wordpress.org/trunk@27762 git-svn-id: http://core.svn.wordpress.org/trunk@27599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2133c89e8f
commit
fd0e34ec9f
@ -1197,19 +1197,20 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( $bulk && post_type_supports( $screen->post_type, 'post-formats' ) ) {
|
if ( $bulk && current_theme_supports( 'post-formats' ) && post_type_supports( $screen->post_type, 'post-formats' ) ) {
|
||||||
$all_post_formats = get_post_format_strings();
|
$post_formats = get_theme_support( 'post-formats' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<label class="alignleft" for="post_format">
|
<label class="alignleft" for="post_format">
|
||||||
<span class="title"><?php _ex( 'Format', 'post format' ); ?></span>
|
<span class="title"><?php _ex( 'Format', 'post format' ); ?></span>
|
||||||
<select name="post_format">
|
<select name="post_format">
|
||||||
<option value="-1"><?php _e( '— No Change —' ); ?></option>
|
<option value="-1"><?php _e( '— No Change —' ); ?></option>
|
||||||
|
<option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
foreach ( $all_post_formats as $slug => $format ) {
|
foreach ( $post_formats[0] as $format ) {
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo esc_attr( $slug ); ?>"><?php echo esc_html( $format ); ?></option>
|
<option value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user