Ticket #7551: 7551.diff

File 7551.diff, 537 bytes (added by mdawaffe, 4 years ago)
  • wp-includes/post.php

     
    32973297        if ( !$post || empty($post['ID']) ) 
    32983298                return; 
    32993299 
    3300         if ( isset($post['post_type']) && 'revision' == $post_post['type'] ) 
     3300        if ( isset($post['post_type']) && 'revision' == $post['post_type'] ) 
    33013301                return new WP_Error( 'post_type', __( 'Cannot create a revision of a revision' ) ); 
    33023302 
    33033303        $post = _wp_post_revision_fields( $post, $autosave );