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:
Helen Hou-Sandí 2013-02-19 20:54:03 +00:00
parent a5e0b8cba3
commit b63559cc89

View File

@ -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';