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:
nacin 2012-02-03 13:38:03 +00:00
parent dad0c4ed9f
commit 0acbde2f56

View File

@ -1490,7 +1490,7 @@ function _get_random_header_data() {
}
if ( empty( $headers ) )
return stdClass();
return new stdClass;
$_wp_random_header = (object) $headers[ array_rand( $headers ) ];