mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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:
parent
0ff58701e0
commit
2413e41f8c
@ -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'];
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user