Make sure the variables are always defined. props tlovett1, danielbachhuber. fixes #24034. fixes #24112.

git-svn-id: http://core.svn.wordpress.org/trunk@24011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-04-17 15:36:13 +00:00
parent db4df8ab8b
commit a1bbc975b4
1 changed files with 2 additions and 1 deletions

View File

@ -128,6 +128,8 @@ foreach ( get_object_taxonomies( $post ) as $tax_name ) {
// post format
$format_class = '';
$post_format_set_class = '';
$post_format_options = '';
if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_post_format_ui', true, $post ) ) {
wp_enqueue_script( 'post-formats' );
wp_enqueue_script( 'wp-mediaelement' );
@ -176,7 +178,6 @@ if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_po
'description' => __( 'Use the editor to share a quick thought or side topic.' )
)
);
$post_format_options = '';
foreach ( $all_post_formats as $slug => $attr ) {
$class = '';