Ticket #24477: revision.php.patch
File revision.php.patch, 648 bytes (added by , 11 years ago) |
---|
-
wp-includes/revision.php
539 539 function _wp_preview_meta_filter( $value, $object_id, $meta_key, $single ) { 540 540 $post = get_post(); 541 541 542 if ( $post->ID != $object_id || ! in_array( $meta_key, _wp_post_revision_meta_keys() ) || 'revision' == $post->post_type )542 if ( empty( $post ) || $post->ID != $object_id || ! in_array( $meta_key, _wp_post_revision_meta_keys() ) || 'revision' == $post->post_type ) 543 543 return $value; 544 544 545 545 $preview = wp_get_post_autosave( $post->ID );