WordPress.org

Make WordPress Core

Ticket #9822: 9822_quick_edit.diff

File 9822_quick_edit.diff, 666 bytes (added by hailin, 9 years ago)

revised patch

  • C:/xampp/htdocs/wordpress_trunk/wp-admin/admin-ajax.php

     
    10621062        }
    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'];
    10681071
     
    10841087                $data['ping_status'] = 'closed';
    10851088
    10861089        // update the post
    1087         $_POST = $data;
    10881090        edit_post();
    10891091
    10901092        $post = array();