Bug #19123
closed
Inconsistent Menu Saving from Theme Customizer
Added by Zachary Muhlbauer 10 months ago.
Updated 9 months ago.
Category name:
WordPress (misc)
Description
When attempting to add new menu items to my site via the theme customizer, I've noticed that the changes don't always save correctly. Instead, I have to manually save them by navigating to the admin dashboard under Appearance > Menu.
The issue is intermittent for reasons I don't understand, but I have been able to replicate it across different themes (e.g. Puskar, Twenty Fifteen). While it could be a quirk on my end, I thought I'd submit a ticket with a screen-recording in case others have experienced something similar. Glad to explain further or to attach additional screen-recordings for reference.
Files
Thanks from me too Zach, and adding Boone as a watcher in case it helps coordinate on a fix.
- Category name set to WordPress (misc)
- Status changed from New to Staged for Production Release
- Target version set to 2.2.2
Zach, thanks for the report, and Ray, thanks for pointing to this portion of the codebase. I was able to reproduce some odd behavior with Menus in the Customizer, and when I bypassed the static HTML cache for these nav menus, the funniness went away. I didn't spend a great deal of time figuring out exactly why - it could have to do with the way that WP handles transients in Customizer previews. But since it seems to be Customizer-specific, a straightforward fix is to skip the caching when in the Customizer context. I've done so in https://github.com/cuny-academic-commons/cac/commit/3e7e9fd1e3766627b003c6006e47a8108d57bf55, and the fix will be in the next maintenance release.
- Status changed from Staged for Production Release to Resolved
Also available in: Atom
PDF