Ticket #15483: 15483.2.diff

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

almost equivalent

Line 
1Index: wp-includes/post.php
2===================================================================
3--- wp-includes/post.php        (revision 16474)
4+++ wp-includes/post.php        (working copy)
5@@ -1495,10 +1495,7 @@
6        if ( ! $post_id )
7                $post_id = get_the_ID();
8 
9-       if ( ! wp_cache_get( $post_id, 'post_meta' ) )
10-               update_postmeta_cache( $post_id );
11-
12-       return wp_cache_get( $post_id, 'post_meta' );
13+       return get_metadata( 'post', $post_id );
14 }
15 
16 /**