WordPress 3.9.1
[autoinstalls/wordpress.git] / wp-admin / custom-header.php
index 2a6a2f30834a6d272fca54775ec18eaaf9348e20..1c9971f5aa8d191990c0b0f4d4cfd8fe5cbfbed3 100644 (file)
@@ -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;
                }