From 8e32770793d5a9a397515a8781458d89d50aa7e3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 23 Jan 2013 03:00:20 +0000 Subject: [PATCH] Define the variable before using it. fixes #23181. git-svn-id: http://core.svn.wordpress.org/trunk@23337 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-header.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 14f01dfb58..7629af3d3a 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -1001,6 +1001,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> $default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() ); + $default_data = array(); foreach ( $this->default_headers as $header => $details ) { if ( $details['url'] == $default ) { $default_data = $details;