Faster way to get_custom strings.
git-svn-id: https://develop.svn.wordpress.org/trunk@2208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
575a6151ff
commit
cc9e610760
@ -244,6 +244,11 @@ function get_post_custom_values($key='') {
|
||||
return $post_meta_cache[$id][$key];
|
||||
}
|
||||
|
||||
function post_custom( $key = '' ) {
|
||||
if ( 1 == count($post_meta_cache[$id][$key]) ) return $post_meta_cache[$id][$key][0];
|
||||
else return $post_meta_cache[$id][$key];
|
||||
}
|
||||
|
||||
// this will probably change at some point...
|
||||
function the_meta() {
|
||||
global $id, $post_meta_cache;
|
||||
|
Loading…
Reference in New Issue
Block a user