Custom header: Avoid warnings in the process_default_headers() method.
props obenland. fixes #27850. Built from https://develop.svn.wordpress.org/trunk@28275 git-svn-id: http://core.svn.wordpress.org/trunk@28103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9bdbd50ac0
commit
7509795517
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue