From 61f7821b34ae252f3c3fa338a4660cc1303a9d5d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 29 Apr 2009 02:47:41 +0000 Subject: [PATCH] Don't double escape autosaves. fixes #9433 git-svn-id: https://develop.svn.wordpress.org/trunk@11117 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index eff02e65e8..23aba61e98 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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 ); }