Ticket #7551: 7551.diff
File 7551.diff, 537 bytes (added by , 16 years ago) |
---|
-
wp-includes/post.php
3297 3297 if ( !$post || empty($post['ID']) ) 3298 3298 return; 3299 3299 3300 if ( isset($post['post_type']) && 'revision' == $post _post['type'] )3300 if ( isset($post['post_type']) && 'revision' == $post['post_type'] ) 3301 3301 return new WP_Error( 'post_type', __( 'Cannot create a revision of a revision' ) ); 3302 3302 3303 3303 $post = _wp_post_revision_fields( $post, $autosave );