[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
Mon Sep 22 17:10:00 UTC 2025


#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                                    |
-------------------------------------------------+-------------------------

Comment (by heyviet):

 This issue resurfaced for me and just wanted to post my solution for
 anyone that needs it. I discovered that the Gutenberg Block Editor kept
 autosaving unintentionally. I resolved it by just removing the features in
 my functions.php file using the code below.


 {{{
 add_action( 'admin_init', 'disable_autosave' );

 function disable_autosave() {
 wp_deregister_script( 'autosave' );
 }
 }}}

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


More information about the wp-trac mailing list