[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
Sun Feb 7 18:35:43 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:  reopened
 Priority:  high                                 |   Milestone:  5.6.2
Component:  Editor                               |     Version:  5.6.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch commit     |     Focuses:
  fixed-major                                    |
-------------------------------------------------+-------------------------

Comment (by archon810):

 As you can see from my screenshot, I have copied autosave.js into
 autosave.min.js and dumped cache, but the prompt was still showing up.

 In fact, I just tried the same with https://github.com/WordPress
 /wordpress-develop/pull/978, and I'm still observing the same pop-up on
 our site. Only the functions.php solution fixes it properly.

 So, perhaps the proposed solution works for some, but not all cases? In
 our case, we add tinymce functionality to 5 elements on custom taxonomy
 pages, which may or may not be related to the bug. Otherwise, I'm not sure
 what else it could be.

 Here's a screenshot showing the issue and the tweaked autosave.min.js code
 from PR 978: [[Image(https://i.imgur.com/BbpPfKr.png)]]

 Replying to [comment:33 hwk-fr]:
 > Replying to [comment:32 archon810]:
 >
 > Yes, that's expected. The `wp-includes/js/autosave.js` file changes
 intructions are for core developers. WordPress websites use an another
 minified file `wp-includes/js/autosave.min.js` which is automatically
 generated on release.
 >
 > This is why I also added a "Standalone Fix" using `functions.php` for
 webmasters. I would recommend to stick to it if you're not sure how those
 minified/unminified files work.

 @SergeyBiryukov @mukesh27 Any ideas?

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


More information about the wp-trac mailing list