[wp-trac] [WordPress Trac] #52440: "Leave site? Changes you made may not be saved" on custom taxonomy pages after WP 5.6.1 update

WordPress Trac noreply at wordpress.org
Tue Feb 16 20:22:51 UTC 2021


#52440: "Leave site? Changes you made may not be saved" on custom taxonomy pages
after WP 5.6.1 update
-------------------------------------------------+-------------------------
 Reporter:  archon810                            |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  high                                 |   Milestone:  5.6.2
Component:  Editor                               |     Version:  5.6.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-screenshots has-patch commit     |     Focuses:
  fixed-major                                    |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50366" 50366]:
 {{{
 #!CommitTicketReference repository="" revision="50366"
 Editor: Correct the check for unsaved content in
 `wp.autosave.server.postChanged()`.

 This fixes improper triggering of the "Are you sure?" prompt when
 navigating away from the old, "classic" Edit Post screen and there are no
 changes.

 The previous check did not account for Pages or any custom post types that
 don't have a Title, Content, or Excerpt field.

 Follow-up to [50031].

 Props hwk-fr, mukesh27, audrasjb, archon810, Clorith, ibiza69,
 tonysandwich, roger995, bartosz777, viablethought, dbtedg, worldedu,
 hmabpera, magnuswebdesign.
 Merges [50232] to the 5.6 branch.
 Fixes #52440.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52440#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list