WordPress/wp-includes/js
Weston Ruter 1a7616ad54 Customize: Extend changesets to support autosave revisions with restoration notifications, and introduce a new default linear history mode for saved changesets (with a filter for opt-in to changeset branching).
* Autosaved changes made on top of `auto-draft` changesets get written on top of the `auto-draft` itself, similar to how autosaves for posts will overwrite post drafts.
* Autosaved changes made to saved changesets (e.g. `draft`, `future`) will be placed into an autosave revision for that changeset and that user.
* Opening the Customizer will now prompt the user to restore their most recent auto-draft changeset; if notification is dismissed or ignored then the auto-draft will be marked as dismissed and will not be prompted to user in a notification again.
* Customizer will no longer automatically supply the `changeset_uuid` param in the `customize.php` URL when branching changesets are not active.
* If user closes Customizer explicitly via clicking on X link, then autosave auto-draft/autosave will be dismissed so as to not be prompted again.
* If there is a changeset already saved as a `draft` or `future` (UI is forthcoming) then this changeset will now be autoloaded for the user to keep making additional changes. This is the linear model for changesets.
* To restore the previous behavior of the Customizer where each session started a new changeset, regardless of whether or not there was an existing changeset saved, there is now a `customize_changeset_branching` hook which can be filtered to return `true`.
* `wp.customize.requestChangesetUpdate()` now supports a second with options including `autosave`, `title`, and `date`.
* The window `blur` event for `customize.php` has been replaced with a `visibilitychange` event to reduce autosave requests when clicking into preview window.
* Adds `autosaved` and `branching` args to `WP_Customize_Manager`.
* The `changeset_uuid` param for `WP_Customize_Manager` is extended to recognize a `false` value which causes the Customizer to defer identifying the UUID until `after_setup_theme` in the new `WP_Customize_Manager::establish_loaded_changeset()` method.
* A new `customize_autosaved` query parameter can now be supplied which is passed into the `autosaved` arg in `WP_Customize_Manager`; this option is an opt-in to source data from the autosave revision, allowing a user to restore autosaved changes.

Props westonruter, dlh, sayedwp, JoshuaWold, melchoyce.
See #39896.

Built from https://develop.svn.wordpress.org/trunk@41597


git-svn-id: http://core.svn.wordpress.org/trunk@41430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-26 07:38:45 +00:00
..
codemirror Editor: Add CodeMirror-powered code editor with syntax highlighting, linting, and auto-completion. 2017-09-13 06:08:47 +00:00
crop
imgareaselect
jcrop
jquery External Libraries: Update jQuery Form (unused in core) to the latest version, 4.2.1. 2017-08-05 13:00:47 +00:00
mediaelement Media: Upgrade MediaElement.js to `4.2.5-74e01a40` fixing missing `mejs.MediaElement` reference. 2017-08-28 19:29:47 +00:00
plupload Plupload: minify and load `plupload.js` and `moxie.js` separately to make them easier to debug. 2017-09-22 20:10:48 +00:00
swfupload Remove SWFUpload, 2017-09-21 16:35:48 +00:00
thickbox Administration: Thickbox: Fix conflicts with the Plugin details and native Thickbox modals. 2017-09-09 14:14:43 +00:00
tinymce Editor: Prevent adding `javascript:` and `data:` URLs through the inline link dialog. 2017-09-19 08:01:45 +00:00
admin-bar.js
admin-bar.min.js
api-request.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
api-request.min.js REST API: Allow overriding `jQuery.ajax` calls from within wp-admin 2017-08-02 16:45:44 +00:00
autosave.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
autosave.min.js
backbone.min.js
colorpicker.js
colorpicker.min.js
comment-reply.js Docs: improve JS docs for `comment-reply.js` 2017-08-24 17:58:44 +00:00
comment-reply.min.js
customize-base.js Customize: Use `input` event instead of `keyup` or `propertychange` events when listening for changes in `wp.customize.Element` instances. 2017-09-18 19:11:48 +00:00
customize-base.min.js Customize: Use `input` event instead of `keyup` or `propertychange` events when listening for changes in `wp.customize.Element` instances. 2017-09-18 19:11:48 +00:00
customize-loader.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-loader.min.js
customize-models.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-models.min.js
customize-preview-nav-menus.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-preview-nav-menus.min.js
customize-preview-widgets.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-preview-widgets.min.js
customize-preview.js Customize: Extend changesets to support autosave revisions with restoration notifications, and introduce a new default linear history mode for saved changesets (with a filter for opt-in to changeset branching). 2017-09-26 07:38:45 +00:00
customize-preview.min.js Customize: Extend changesets to support autosave revisions with restoration notifications, and introduce a new default linear history mode for saved changesets (with a filter for opt-in to changeset branching). 2017-09-26 07:38:45 +00:00
customize-selective-refresh.js Docs: Remove "being being" dittography from inline comments. 2017-09-09 14:49:44 +00:00
customize-selective-refresh.min.js Customize: Run a partial's fallback behavior (full refresh) when selective refresh fails due to a script error. 2017-05-17 00:01:40 +00:00
customize-views.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-views.min.js
heartbeat.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
heartbeat.min.js
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js
json2.js
json2.min.js
masonry.min.js
mce-view.js TinyMCE: Improve the previews for shortcodes. 2017-09-19 08:19:45 +00:00
mce-view.min.js TinyMCE: Improve the previews for shortcodes. 2017-09-19 08:19:45 +00:00
media-audiovideo.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
media-audiovideo.min.js Media: Upgrade MediaElement.js from 2.22.0 to 4.2.3. 2017-08-01 04:43:51 +00:00
media-editor.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
media-editor.min.js
media-grid.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
media-grid.min.js Media: library grid view - improve browser history support. 2017-07-10 19:08:41 +00:00
media-models.js Emoji: Invert value returned by UN test for accuracy. 2017-09-17 22:52:47 +00:00
media-models.min.js
media-views.js Customizer: retain aspect ration when cropping media w/ shift+click/drag. 2017-09-21 22:45:44 +00:00
media-views.min.js Customizer: retain aspect ration when cropping media w/ shift+click/drag. 2017-09-21 22:45:44 +00:00
quicktags.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
quicktags.min.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
shortcode.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
shortcode.min.js Shortcodes: Allow using single quotes for empty value attributes. 2017-07-11 00:54:41 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Emoji: Update Twemoji to 2.5.0. 2017-08-14 02:04:45 +00:00
twemoji.min.js Emoji: Update Twemoji to 2.5.0. 2017-08-14 02:04:45 +00:00
underscore.min.js
utils.js Move `sanitizeText` and `stripTags` from press this to `wp.sanitize`. 2017-07-15 15:48:46 +00:00
utils.min.js
wp-a11y.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-a11y.min.js Accessibility: Make Safari 10 + VoiceOver announce repeated, identical, `wp.a11y.speak()` messages. 2017-04-19 19:53:42 +00:00
wp-ajax-response.js
wp-ajax-response.min.js
wp-api.js REST API JS Client: Improve nonce handling, refresh stale nonce on sync. 2017-09-21 12:58:45 +00:00
wp-api.min.js REST API JS Client: Improve nonce handling, refresh stale nonce on sync. 2017-09-21 12:58:45 +00:00
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-backbone.min.js
wp-custom-header.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-custom-header.min.js
wp-embed-template.js
wp-embed-template.min.js
wp-embed.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-embed.min.js
wp-emoji-loader.js Emoji: Invert value returned by UN test for accuracy. 2017-09-17 22:52:47 +00:00
wp-emoji-loader.min.js Emoji: Invert value returned by UN test for accuracy. 2017-09-17 22:52:47 +00:00
wp-emoji-release.min.js Emoji: Update Twemoji to 2.5.0. 2017-08-14 02:04:45 +00:00
wp-emoji.js
wp-emoji.min.js
wp-hooks.js Add `wp.hooks` - JavaScript actions and filters. 2017-09-12 12:54:45 +00:00
wp-hooks.min.js Add `wp.hooks` - JavaScript actions and filters. 2017-09-12 12:54:45 +00:00
wp-list-revisions.js
wp-list-revisions.min.js
wp-lists.js
wp-lists.min.js
wp-pointer.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-pointer.min.js
wp-sanitize.js wp.sanitize - fix namespace for calls to `stripTags`. 2017-09-14 19:29:44 +00:00
wp-sanitize.min.js wp.sanitize - fix namespace for calls to `stripTags`. 2017-09-14 19:29:44 +00:00
wp-util.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-util.min.js
wpdialog.js
wpdialog.min.js
wplink.js Editor: Prevent adding `javascript:` and `data:` URLs through the inline link dialog. 2017-09-19 08:01:45 +00:00
wplink.min.js Editor: Prevent adding `javascript:` and `data:` URLs through the inline link dialog. 2017-09-19 08:01:45 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js