Make WordPress Core

Changeset 10620


Ignore:
Timestamp:
02/22/2009 12:35:42 AM (17 years ago)
Author:
ryan
Message:

Escape before passing to insert/update post. Props hailin. fixes #9199 for trunk

File:
1 edited

Legend:

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

    r10502 r10620  
    35083508
    35093509        $post = _wp_post_revision_fields( $post, $autosave );
    3510 
     3510        $post = add_magic_quotes($post); //since data is from db
     3511       
    35113512        $revision_id = wp_insert_post( $post );
    35123513        if ( is_wp_error($revision_id) )
     
    35843585
    35853586        $update['ID'] = $revision['post_parent'];
     3587       
     3588        $update = add_magic_quotes( $update ); //since data is from db
    35863589
    35873590        $post_id = wp_update_post( $update );
Note: See TracChangeset for help on using the changeset viewer.