Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (12 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/revision.php

    r23466 r23554  
    242242
    243243    $post = _wp_post_revision_fields( $post, $autosave );
     244    $post = add_magic_quotes($post); //since data is from db
    244245
    245246    $revision_id = wp_insert_post( $post );
     
    320321    $update['ID'] = $revision['post_parent'];
    321322
     323    $update = add_magic_quotes( $update ); //since data is from db
     324
    322325    $post_id = wp_update_post( $update );
    323326    if ( is_wp_error( $post_id ) )
Note: See TracChangeset for help on using the changeset viewer.