From 0acbde2f569fe97d004853318e1b18dc239bc33e Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 3 Feb 2012 13:38:03 +0000 Subject: [PATCH] Return an empty object properly. see #17242. git-svn-id: http://svn.automattic.com/wordpress/trunk@19821 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index ea29f91e2..f61369a44 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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 ) ];