Make WordPress Core

Ticket #52995: 52995-edit-form-blocks.php.patch

File 52995-edit-form-blocks.php.patch, 584 bytes (added by ravipatel, 4 years ago)

undefine variable

  • src/wp-admin/edit-form-blocks.php

     
    346346        'enableCustomSpacing'                  => $custom_spacing,
    347347);
    348348
    349 $autosave = wp_get_post_autosave( $post_ID );
     349$autosave = wp_get_post_autosave( $post->ID );
    350350if ( $autosave ) {
    351351        if ( mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
    352352                $editor_settings['autosave'] = array(