Changeset 50366
- Timestamp:
- 02/16/2021 08:22:36 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/js/_enqueues/wp/autosave.js
r50031 r50366 711 711 712 712 if ( ! editor || editor.isHidden() ) { 713 if ( $( '#' + field ).val() !== initialCompareData[ field ] ) {713 if ( ( $( '#' + field ).val() || '' ) !== initialCompareData[ field ] ) { 714 714 changed = true; 715 715 // Break. … … 722 722 } ); 723 723 724 if ( $( '#title' ).val() !== initialCompareData.post_title ) {724 if ( ( $( '#title' ).val() || '' ) !== initialCompareData.post_title ) { 725 725 changed = true; 726 726 }
Note: See TracChangeset
for help on using the changeset viewer.