diff --git a/wp-includes/theme.php b/wp-includes/theme.php index ea29f91e24..f61369a440 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 ) ];