WordPress 5.6.1, which many sites auto-updated to, has introduced a bug that makes it difficult to save a post. A temporary patch has been created to address the issue but it’s not an official update to solve the problem.

Changes You Made May Not Be Saved

A bug introduced into the latest version of WordPress, version 5.6.1 causes an alert to pop up when attempting to navigate away, regardless if the post has been saved or not.

The bug was reported in a WordPress support page:

“I am getting the pop up “Leave Site? Changes you made may not be saved. All the time, if I change a page or not, and if I save (publish or update) the page or not.

This began after the 5.6.1 upgrade this morning. I have 2 sites, with 2 different themes, both with the classic editor 1.6 and it behaves the same on both.

It does this in Chrome, it does not do it in Firefox.”

Advertisement

Continue Reading Below

The fact that it doesn’t happen in Firefox is interesting because, according to Mozilla documentation, Firefox handles certain aspects of the unload event differently from Chrome in that Chrome lacks certain features.

This is not a Chrome issue however. I’m simply pointing out why a bug may show up in Chrome but not in Firefox.

Unload Events Bug in WordPress Editing Window?

The notice is part of what’s called an “unload event” that triggers a warning when a publisher tries to navigate away from a window, usually when something is left undone.

The exact warning message triggered is:

“Leave…

Read More…