mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Prevent a notice for post types that don't support post formats. props ethitter. fixes #23534.
git-svn-id: http://core.svn.wordpress.org/trunk@23456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5e0b8cba3
commit
b63559cc89
@ -127,10 +127,11 @@ foreach ( get_object_taxonomies( $post ) as $tax_name ) {
|
||||
}
|
||||
|
||||
// post format
|
||||
$format_class = '';
|
||||
if ( post_type_supports( $post_type, 'post-formats' ) ) {
|
||||
wp_enqueue_script( 'post-formats' );
|
||||
$post_format = get_post_format();
|
||||
$format_class = '';
|
||||
|
||||
if ( ! $post_format )
|
||||
$post_format = 'standard';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user