mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
A better logic check for whether we are looking at a post formats supporting view.
see #24291. git-svn-id: https://develop.svn.wordpress.org/trunk@24243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
010908b234
commit
1786a428da
@ -85,7 +85,8 @@ $admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-
|
||||
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
|
||||
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
|
||||
|
||||
if ( false !== $post_format = get_post_format() ) {
|
||||
if ( isset( $post ) && is_a( $post, 'WP_Post' ) && post_type_supports( get_post_type(), 'post-formats' ) ) {
|
||||
$post_format = get_post_format();
|
||||
if ( ! $post_format ) {
|
||||
$post_format = 'standard';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user