From 8e7f77c8fb8bed893bd1d9c56db084e9ad4504ab Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 17 Sep 2009 22:11:57 +0000 Subject: [PATCH] Return correct results for both single and array cases. Fixes #10803. git-svn-id: http://svn.automattic.com/wordpress/trunk@11948 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/meta.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index 75aa00747..c8fdf7867 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -134,7 +134,10 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) { } } - return false; + if ($single) + return ''; + else + return array(); } function update_meta_cache($meta_type, $object_ids) {