From 0bc6b8cbf0df81e3841b88f1ab6726612daec75e Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 22 May 2008 15:54:50 +0000 Subject: Cast as array to avoid feed.php errors to avoid http://trac.wordpress.org/ticket/7014 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1305 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-includes/post.php') diff --git a/wp-includes/post.php b/wp-includes/post.php index cca4149..8219da6 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -694,7 +694,7 @@ function get_post_custom($post_id = 0) { if ( ! wp_cache_get($post_id, 'post_meta') ) update_postmeta_cache($post_id); - return wp_cache_get($post_id, 'post_meta'); + return (array)wp_cache_get($post_id, 'post_meta'); } /** -- cgit