From dfb0e1aaa8c24e6c7fc6c93b0a47ebf5e65ee7e9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 6 May 2014 05:25:16 +0000 Subject: [PATCH] Custom header: Avoid warnings in the process_default_headers() method. Merges [28275] to the 3.9 branch. props obenland. fixes #27850. Built from https://develop.svn.wordpress.org/branches/3.9@28277 git-svn-id: http://core.svn.wordpress.org/branches/3.9@28105 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 2a6a2f3083..1c9971f5aa 100644 --- a/wp-admin/custom-header.php +++ b/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; }