xwp / wp-settings-revisions

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

Load settings to apply via Ajax #9

Open westonruter opened 11 years ago

westonruter commented 11 years ago

Currently the revisions select dropdown gets constructed with options that have their corresponding settings in a data attribute for each. If there are a lot of customizer controls, the weight of this select element will quickly grow. Currently there can be a max of 50 settings revisions listed in the select list. Upon selecting a revision, an Ajax request could fetch the corresponding settings to send back for populating in the controls. This is similar to what happens now when a new revision is saved, the new revision's option with settings in a data attribute get sent back via Ajax.