Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress has started warning me "Leave Site? Changes you made may not be saved" when no changes have been made

Tags:

wordpress

In the WordPress theme my team has developed, we've recently run into an issue where no matter what, when trying to exit a Post/Page/Custom-Post-Type, WordPress will throw up the warning, "Leave Site? Changes you made may not be saved." Even if you click update and then immediately try to exit the page, it will throw that warning.

Leave Site Image

I cannot figure out what is causing this. This behavior started when I pushed out a major update a couple of days ago. I tried completely removing that update, reverting all the changes via git, and the behavior persists. I even switch to a branch of the theme that hasn't been worked on in months, and the behavior persists.

I've tried Chrome, Firefox, Edge, and the behavior persists. I've had coworkers try it on their computers s, and the behavior persists.

It's driving me crazy! Does anyone have any advice even where to start looking? Is it just a recent WordPress issue and nothing to do with our Theme?

like image 875
Landon Avatar asked Sep 05 '25 03:09

Landon


1 Answers

This issue is caused by a bug that was introduced in version 5.6.1 of WordPress.

As a workaround, you can temporarily downgrade WordPress from 5.6.1 to 5.6. One way to do that is by using the WP Downgrade plugin.

Alternatively, you can just ignore the issue for a few days/weeks until they patch it.

like image 113
user3631047 Avatar answered Sep 07 '25 22:09

user3631047