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:
parent
a7bdc45876
commit
41a3df9cd0
|
@ -1080,6 +1080,9 @@ function wp_create_post_autosave( $post_id ) {
|
||||||
return wp_update_post( $new_autosave );
|
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
|
// Otherwise create the new autosave as a special post revision
|
||||||
return _wp_put_post_revision( $_POST, true );
|
return _wp_put_post_revision( $_POST, true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue