mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 21:28:02 +01:00
Add missing globals to post_custom(). http://mosquito.wordpress.org/view.php?id=1058 Props: kellan
git-svn-id: https://develop.svn.wordpress.org/trunk@2420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
35be0f6333
commit
d2b598c1c3
@ -234,6 +234,8 @@ function get_post_custom_values($key='') {
|
||||
}
|
||||
|
||||
function post_custom( $key = '' ) {
|
||||
global $id, $post_meta_cache;
|
||||
|
||||
if ( 1 == count($post_meta_cache[$id][$key]) ) return $post_meta_cache[$id][$key][0];
|
||||
else return $post_meta_cache[$id][$key];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user