mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
Add missing globals to post_custom(). http://mosquito.wordpress.org/view.php?id=1058 Props: kellan
git-svn-id: http://svn.automattic.com/wordpress/trunk@2420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
afabe5523d
commit
4964935ced
@ -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…
Reference in New Issue
Block a user