Make WordPress Core

Changeset 3448


Ignore:
Timestamp:
01/17/2006 01:01:17 AM (19 years ago)
Author:
matt
Message:

get_post_custom_values update. Fixes #2160

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.