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:
parent
aab36bea4e
commit
18459850ef
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue