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:
parent
d3a848c773
commit
13a9d1a7e6
@ -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'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user