Make WordPress Core


Ignore:
Timestamp:
03/03/2013 09:11:40 PM (13 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #21767

File:
1 edited

Legend:

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

    r23554 r23594  
    242242
    243243        $post = _wp_post_revision_fields( $post, $autosave );
    244         $post = add_magic_quotes($post); //since data is from db
     244        $post = wp_slash($post); //since data is from db
    245245
    246246        $revision_id = wp_insert_post( $post );
     
    321321        $update['ID'] = $revision['post_parent'];
    322322
    323         $update = add_magic_quotes( $update ); //since data is from db
     323        $update = wp_slash( $update ); //since data is from db
    324324
    325325        $post_id = wp_update_post( $update );
Note: See TracChangeset for help on using the changeset viewer.