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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With