Changeset 3448

Show
Ignore:
Timestamp:
01/17/06 01:01:17 (3 years ago)
Author:
matt
Message:

get_post_custom_values update. Fixes #2160

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/template-functions-post.php

    r3438 r3448  
    232232 
    233233 
    234 function get_post_custom_values($key='') { 
     234function get_post_custom_values( $key = '' ) { 
    235235    global $id, $post_meta_cache; 
    236236 
    237     return $post_meta_cache[$id][$key]; 
     237    if ( empty($key) ) 
     238        return $post_meta_cache[$id]; 
     239    else 
     240        return get_post_custom(); 
    238241} 
    239242