mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Allow dfault post format selections. fixes #15882.
git-svn-id: https://develop.svn.wordpress.org/trunk@17056 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -247,7 +247,7 @@ function post_format_meta_box( $post, $box ) {
|
||||
if ( is_array( $post_formats[0] ) ) :
|
||||
$post_format = get_post_format( $post->ID );
|
||||
if ( !$post_format )
|
||||
$post_format = '0';
|
||||
$post_format = get_option('default_post_format', '0');
|
||||
$post_format_display = get_post_format_string( $post_format );
|
||||
// Add in the current one if it isn't there yet, in case the current theme doesn't support it
|
||||
if ( $post_format && !in_array( $post_format, $post_formats[0] ) )
|
||||
|
||||
Reference in New Issue
Block a user