get_post_custom_values update. Fixes #2160

git-svn-id: https://develop.svn.wordpress.org/trunk@3448 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-01-17 01:01:17 +00:00
parent f5d1124575
commit 5275f2eef6
1 changed files with 5 additions and 2 deletions

View File

@ -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();
}