Make WordPress Core

Ticket #15483: 15483.2.diff

File 15483.2.diff, 441 bytes (added by scribu, 14 years ago)

almost equivalent

  • wp-includes/post.php

     
    14951495        if ( ! $post_id )
    14961496                $post_id = get_the_ID();
    14971497
    1498         if ( ! wp_cache_get( $post_id, 'post_meta' ) )
    1499                 update_postmeta_cache( $post_id );
    1500 
    1501         return wp_cache_get( $post_id, 'post_meta' );
     1498        return get_metadata( 'post', $post_id );
    15021499}
    15031500
    15041501/**