From a7d1dfad01c0578877bddb8ef7288c54a96cc776 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: https://develop.svn.wordpress.org/trunk@23337 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;