Ticket #9199: 9199_revision.diff
| File 9199_revision.diff, 840 bytes (added by , 17 years ago) |
|---|
-
C:/xampp/htdocs/wordpress_trunk/wp-includes/post.php
3507 3507 return new WP_Error( 'post_type', __( 'Cannot create a revision of a revision' ) ); 3508 3508 3509 3509 $post = _wp_post_revision_fields( $post, $autosave ); 3510 3510 $post = add_magic_quotes($post); //since data is from db 3511 3511 3512 $revision_id = wp_insert_post( $post ); 3512 3513 if ( is_wp_error($revision_id) ) 3513 3514 return $revision_id; … … 3583 3584 return false; 3584 3585 3585 3586 $update['ID'] = $revision['post_parent']; 3587 3588 $update = add_magic_quotes( $update ); //since data is from db 3586 3589 3587 3590 $post_id = wp_update_post( $update ); 3588 3591 if ( is_wp_error( $post_id ) )