WordPress.org

Make WordPress Core

Changeset 11343


Ignore:
Timestamp:
05/15/09 20:05:52 (6 years ago)
Author:
ryan
Message:

Add escaping for quick edit saves. Props hailin. fixes #9822

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r11240 r11343  
    10631063 
    10641064    $data = &$_POST; 
     1065     
    10651066    $post = get_post( $post_ID, ARRAY_A ); 
     1067    $post = add_magic_quotes($post); //since it is from db 
     1068     
    10661069    $data['content'] = $post['post_content']; 
    10671070    $data['excerpt'] = $post['post_excerpt']; 
     
    10851088 
    10861089    // update the post 
    1087     $_POST = $data; 
    10881090    edit_post(); 
    10891091 
Note: See TracChangeset for help on using the changeset viewer.