mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
get_post_custom_values update. Fixes #2160
git-svn-id: http://svn.automattic.com/wordpress/trunk@3448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a3b3902c53
commit
0ca2b56f1e
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user