WordPress.org

Make WordPress Core

Ticket #23925: 23925.patch

File 23925.patch, 486 bytes (added by jfarthing84, 5 years ago)
  • wp-includes/post.php

     
    17121712 *  is true.
    17131713 */
    17141714function get_post_meta($post_id, $key = '', $single = false) {
     1715        // make sure meta is retrieved from the post, not a revision
     1716        if ( $the_post = wp_is_post_revision($post_id) )
     1717                $post_id = $the_post;
     1718
    17151719        return get_metadata('post', $post_id, $key, $single);
    17161720}
    17171721