mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user