Make WordPress Core

Ticket #2160: 2160.2.diff

File 2160.2.diff, 476 bytes (added by davidhouse, 19 years ago)

minus debugging cruft

  • wp-includes/template-functions-post.php

     
    234234function 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();
     241        }
    238242}
    239243
    240244