From 13a9d1a7e665d6afc3787081b93046d5d7cffc70 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 17 Feb 2016 00:09:42 +0000 Subject: [PATCH] Do not strip slashes from the whole &_POST when doing autosaves. Props joehoyle. Fixes #35408. git-svn-id: https://develop.svn.wordpress.org/trunk@36543 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index c169bd7541..74b3510163 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1647,7 +1647,7 @@ function _admin_notice_post_locked() { function wp_create_post_autosave( $post_data ) { if ( is_numeric( $post_data ) ) { $post_id = $post_data; - $post_data = &$_POST; + $post_data = $_POST; } else { $post_id = (int) $post_data['post_ID']; }