WordPress.org

Make WordPress Core

Ticket #35408: 35408.diff

File 35408.diff, 461 bytes (added by joehoyle, 5 years ago)
  • src/wp-admin/includes/post.php

    diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
    index c169bd7..74b3510 100644
    a b function _admin_notice_post_locked() { 
    16471647function wp_create_post_autosave( $post_data ) {
    16481648        if ( is_numeric( $post_data ) ) {
    16491649                $post_id = $post_data;
    1650                 $post_data = &$_POST;
     1650                $post_data = $_POST;
    16511651        } else {
    16521652                $post_id = (int) $post_data['post_ID'];
    16531653        }