WordPress.org

Make WordPress Core

Ticket #19390: 19390.diff

File 19390.diff, 833 bytes (added by sorich87, 6 years ago)
  • wp-includes/js/autosave.dev.js

     
    283283        }
    284284
    285285        if ( fullscreen && fullscreen.settings.visible ) {
    286                 post_data["post_title"] = jQuery('#wp-fullscreen-title').val();
    287                 post_data["content"] = jQuery("#wp_mce_fullscreen").val();
     286                post_data["post_title"] = jQuery('#wp-fullscreen-title').val() || '';
     287                post_data["content"] = jQuery("#wp_mce_fullscreen").val() || '';
    288288        } else {
    289                 post_data["post_title"] = jQuery("#title").val()
    290                 post_data["content"] = jQuery("#content").val();
     289                post_data["post_title"] = jQuery("#title").val() || '';
     290                post_data["content"] = jQuery("#content").val() || '';
    291291        }
    292292
    293293        if ( jQuery('#post_name').val() )