Make WordPress Core

Ticket #1482: 1482.diff

File 1482.diff, 424 bytes (added by Denis-de-Bernardy, 21 years ago)
  • functions.php

     
    391391
    392392function get_post_meta($post_id, $key, $single = false) {
    393393        global $wpdb, $post_meta_cache;
    394 
     394       
     395        if (!$post_id) return;
     396       
    395397        if (isset($post_meta_cache[$post_id][$key])) {
    396398                if ($single) {
    397399                        return $post_meta_cache[$post_id][$key][0];