Return an empty object properly. see #17242.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dad0c4ed9f
commit
0acbde2f56
|
@ -1490,7 +1490,7 @@ function _get_random_header_data() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( empty( $headers ) )
|
if ( empty( $headers ) )
|
||||||
return stdClass();
|
return new stdClass;
|
||||||
|
|
||||||
$_wp_random_header = (object) $headers[ array_rand( $headers ) ];
|
$_wp_random_header = (object) $headers[ array_rand( $headers ) ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue