From c0822b532ee2edd2e5df9cf2cd1d5198aba029e4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 6 May 2014 05:06:39 +0000 Subject: [PATCH] Custom header: Avoid warnings in the process_default_headers() method. props obenland. fixes #27850. git-svn-id: https://develop.svn.wordpress.org/trunk@28275 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/custom-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/custom-header.php b/src/wp-admin/custom-header.php index 2862f47a48..814d9a1177 100644 --- a/src/wp-admin/custom-header.php +++ b/src/wp-admin/custom-header.php @@ -40,7 +40,7 @@ class Custom_Image_Header { * @since 3.0.0 * @access private */ - var $default_headers; + var $default_headers = array(); /** * Holds custom headers uploaded by the user. @@ -254,7 +254,7 @@ class Custom_Image_Header { if ( !isset($_wp_default_headers) ) return; - if ( is_array( $this->default_headers ) ) { + if ( ! empty( $this->default_headers ) ) { return; }