mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
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:
parent
f5d1124575
commit
5275f2eef6
@ -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;
|
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…
x
Reference in New Issue
Block a user