Add escaping for quick edit saves. Props hailin. fixes #9822
git-svn-id: https://develop.svn.wordpress.org/trunk@11343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c3bd8ffb66
commit
08a55fd223
|
@ -1062,7 +1062,10 @@ case 'inline-save':
|
|||
}
|
||||
|
||||
$data = &$_POST;
|
||||
|
||||
$post = get_post( $post_ID, ARRAY_A );
|
||||
$post = add_magic_quotes($post); //since it is from db
|
||||
|
||||
$data['content'] = $post['post_content'];
|
||||
$data['excerpt'] = $post['post_excerpt'];
|
||||
|
||||
|
@ -1084,7 +1087,6 @@ case 'inline-save':
|
|||
$data['ping_status'] = 'closed';
|
||||
|
||||
// update the post
|
||||
$_POST = $data;
|
||||
edit_post();
|
||||
|
||||
$post = array();
|
||||
|
|
Loading…
Reference in New Issue