From 5275f2eef6601abceb6e594904af8eec76ca4ed1 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 17 Jan 2006 01:01:17 +0000 Subject: [PATCH] get_post_custom_values update. Fixes #2160 git-svn-id: https://develop.svn.wordpress.org/trunk@3448 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-post.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index 673abcd014..eaf2696152 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -231,10 +231,13 @@ function get_post_custom_keys() { } -function get_post_custom_values($key='') { +function get_post_custom_values( $key = '' ) { global $id, $post_meta_cache; - return $post_meta_cache[$id][$key]; + if ( empty($key) ) + return $post_meta_cache[$id]; + else + return get_post_custom(); }