#20692 closed enhancement (fixed)
Handle unsaved changes in the customizer
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Appearance | Version: | 3.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Losing your changes is no fun.
The way I see it, we have two options:
1) Show an AYS when leaving the customizer by using an onbeforeunload handler.
2) Store unsaved customizations in a customize_data_$stylesheet option. The fact that certain customize settings persist across theme changes (options) while others don't (theme_mods and some theme-specific options) could pose a problem.
I say let's start with #1.
Attachments (1)
Change History (6)
comment:2
in reply to:
↑ 1
koopersmith — 12 months ago
- Keywords needs-patch added
- Owner set to helenyhou
- Status changed from new to assigned
Replying to jane:
I'd hate to put in an unnecessary AYS. IF it's that big a concern, would be better to bring save up to top and have blue "Save & Activate" on right, 2ndary button for "Cancel" instead of "Return to Manage Themes" on left.
I like this idea quite a bit.
From dev chat, helenyhou is going to take a stab at the patch.
comment:4
koopersmith — 12 months ago
- Resolution set to fixed
- Status changed from assigned to closed
In [20864]:
comment:30
ryan — 12 months ago
In [20877]:

I'd hate to put in an unnecessary AYS. IF it's that big a concern, would be better to bring save up to top and have blue "Save & Activate" on right, 2ndary button for "Cancel" instead of "Return to Manage Themes" on left.