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:
Ryan Boren 2009-05-15 20:05:52 +00:00
parent c3bd8ffb66
commit 08a55fd223
1 changed files with 3 additions and 1 deletions

View File

@ -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();