From ce083ccfafbe3e6872539c922e6004269ae9edb5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 19 Aug 2008 22:35:28 +0000 Subject: [PATCH] Typo fix from mdawaffe. fixes #7551 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@8675 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 236255caad..844e3abd56 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3338,7 +3338,7 @@ function _wp_put_post_revision( $post = null, $autosave = false ) { if ( !$post || empty($post['ID']) ) return; - if ( isset($post['post_type']) && 'revision' == $post_post['type'] ) + if ( isset($post['post_type']) && 'revision' == $post['post_type'] ) return new WP_Error( 'post_type', __( 'Cannot create a revision of a revision' ) ); $post = _wp_post_revision_fields( $post, $autosave );