mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user