Don't double escape autosaves. fixes #9433

git-svn-id: http://svn.automattic.com/wordpress/trunk@11117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-29 02:47:41 +00:00
parent a7bdc45876
commit 41a3df9cd0
1 changed files with 3 additions and 0 deletions

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 );
}