Typo fix from mdawaffe. fixes #7551 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@8675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-19 22:35:28 +00:00
parent aab36bea4e
commit 18459850ef
1 changed files with 1 additions and 1 deletions

View File

@ -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 );