Ticket #2160: get_post_custom_values.patch

File get_post_custom_values.patch, 359 bytes (added by Kafkaesqui, 6 years ago)

Has get_post_custom_values() return $post_meta_cache[$id][$key] if $key param provided.

  • template-functions-post.php

     
    237237        if ( empty($key) ) 
    238238                return $post_meta_cache[$id]; 
    239239        else 
    240                 return get_post_custom(); 
     240                return $post_meta_cache[$id][$key]; 
    241241} 
    242242 
    243243