Avoid an undefined variable notice. props sc0ttkclark. see #24236.
git-svn-id: https://develop.svn.wordpress.org/trunk@24148 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
995a5d1c46
commit
dfc7de0306
@ -130,6 +130,7 @@ foreach ( get_object_taxonomies( $post ) as $tax_name ) {
|
||||
$format_class = '';
|
||||
$post_format = '';
|
||||
$post_format_options = '';
|
||||
$show_post_format_ui = false;
|
||||
if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'enable_post_format_ui', true, $post ) ) {
|
||||
wp_enqueue_script( 'post-formats' );
|
||||
wp_enqueue_script( 'wp-mediaelement' );
|
||||
|
Loading…
Reference in New Issue
Block a user