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:
parent
6653fe24e0
commit
ce083ccfaf
@ -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…
x
Reference in New Issue
Block a user