From 8e26b1739b622efd0dc160467013fb433784b894 Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@11948 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 75aa00747e..c8fdf78678 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) {