Make WordPress Core

Ticket #23539: 23539.2.diff

File 23539.2.diff, 396 bytes (added by kovshenin, 11 years ago)
  • wp-includes/revision.php

     
    523523                return $value;
    524524
    525525        $preview = wp_get_post_autosave( $post->ID );
     526        if ( ! is_object( $preview ) )
     527                return $value;
     528
    526529        return get_post_meta( $preview->ID, $meta_key, $single );
    527530}
    528531