Make WordPress Core


Ignore:
Timestamp:
02/22/2009 12:36:00 AM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/post.php

    r10253 r10621  
    34573457
    34583458    $post = _wp_post_revision_fields( $post, $autosave );
    3459 
     3459    $post = add_magic_quotes($post); //since data is from db
     3460   
    34603461    $revision_id = wp_insert_post( $post );
    34613462    if ( is_wp_error($revision_id) )
     
    35333534
    35343535    $update['ID'] = $revision['post_parent'];
     3536   
     3537    $update = add_magic_quotes( $update ); //since data is from db
    35353538
    35363539    $post_id = wp_update_post( $update );
Note: See TracChangeset for help on using the changeset viewer.