From a1bbc975b4c239b98927d71d9babca9d140c01c8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 17 Apr 2013 15:36:13 +0000 Subject: [PATCH] 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 --- wp-admin/edit-form-advanced.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 55720d7de9..ad44a52ffb 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -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 = '';