xwp / wp-settings-revisions

Settings Revisions plugin for WordPress
http://wordpress.org/plugins/settings-revisions/
Other
25 stars 7 forks source link

Allow changes for all controls or any one control to be reverted #26

Open westonruter opened 11 years ago

westonruter commented 11 years ago

This is not specific to Settings Revisions but would be a great improvement for Customizer in general. When making changes to the Customizer, say a color picker, and you want to undo a change to that one control but keep the others, you cannot easily do this. So you may have to reload the page and re-enter the other controls.

This would make sense as a standalone plugin which adds a revert button to each control.

It would also be handy for there to be a revert for the entire customizer. We could convert the Cancel button into a Revert button, which would then turn into a Close button.

This plugin would be relatively simple. All it would need to do is capture the setting for each control upon initialization, and then supply this initially-stored value back to the control's setting when the revert functionality is invoked.

Relates to #13