Do not strip slashes from the whole &_POST when doing autosaves.

Props joehoyle.
Fixes #35408.
Built from https://develop.svn.wordpress.org/trunk@36543


git-svn-id: http://core.svn.wordpress.org/trunk@36510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2016-02-17 00:10:27 +00:00
parent 0ff58701e0
commit 2413e41f8c
2 changed files with 2 additions and 2 deletions

View File

@ -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'];
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36542';
$wp_version = '4.5-alpha-36543';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.