Don't double escape autosaves. fixes #9433

git-svn-id: https://develop.svn.wordpress.org/trunk@11117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-29 02:47:41 +00:00
parent 8621dc0e1d
commit 61f7821b34

View File

@ -1080,6 +1080,9 @@ function wp_create_post_autosave( $post_id ) {
return wp_update_post( $new_autosave );
}
// _wp_put_post_revision() expects unescaped.
$_POST = stripslashes_deep($_POST);
// Otherwise create the new autosave as a special post revision
return _wp_put_post_revision( $_POST, true );
}