diff --git a/src/wp-includes/revision.php b/src/wp-includes/revision.php index 48523032e7..1203d78105 100644 --- a/src/wp-includes/revision.php +++ b/src/wp-includes/revision.php @@ -190,7 +190,6 @@ function wp_get_post_autosave( $post_id, $user_id = 0 ) { continue; return $revision; - break; } } @@ -254,7 +253,6 @@ function _wp_put_post_revision( $post = null, $autosave = false ) { if ( isset($post['post_type']) && 'revision' == $post['post_type'] ) return new WP_Error( 'post_type', __( 'Cannot create a revision of a revision' ) ); - $post_id = $post['ID']; $post = _wp_post_revision_fields( $post, $autosave ); $post = wp_slash($post); //since data is from db