X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/41578db67d72562346e4dbb2a14889b23d522813..0f684a09c03e547d3132bddc970cbeafcd1102f4:/wp-admin/custom-header.php diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 2a6a2f30..1c9971f5 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; }