Typo fix from mdawaffe. fixes #7551 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@8675 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-08-19 22:35:28 +00:00
parent 6653fe24e0
commit ce083ccfaf
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 );