WordPress/wp-includes/js
Weston Ruter 8043c2d8e5 Customize: Introduce drafting and scheduling for Customizer changesets.
* Incorporates code from the Customize Snapshots and Customize Posts feature plugins.
* Adds a new Publish Settings section for managing the changeset status, scheduled date, and frontend preview link.
* Updates Publish button to reflect the status selected in the Publish Settings (including Save Draft and Schedule).
* Deactivates the Themes section when a non-publish status selected, and deactivates the Publish Settings section when previewing a theme switch.
* Introduces an `outer` section type (`wp.customize.OuterSection` in JS) for the Publish Settings section to use and for available widgets and available nav menu panels to use in the future. These sections can be expanded while other sections are expanded.
* Introduces `WP_Customize_Date_Time_Control` in PHP and `wp.customize.DateTimeControl` in JS for managing a date/time value.
* Keeps track of scheduled time and proactively publish from the client when the time arrives, as opposed to waiting for WP Cron.
* Auto-publishes a scheduled changeset when attempting to access one that missed its schedule.
* Starts a new changeset if attempting to save a changeset that was previously publish.
* Adds `force` arg to `requestChangesetUpdate()` to force an update request even when there are no pending changes.
* Adds utils methods for `getCurrentTimestamp` and `getRemainingTime`.
* Adds new state values for `selectedChangesetStatus`, `changesetDate`, `selectedChangesetDate`.
* Fixes logic for when to short-circuit check to close Customizer when there are unsaved changes.
* Adds getter methods for `autosaved` and `branching` parameters, with the latter applying the `customize_changeset_branching` filter.
* Call to `establish_loaded_changeset` on the fly when `changeset_uuid()` is called if no changeset UUID was specififed.
* De-duplicates logic for dismissing auto-draft changesets.
* Includes unit tests.

Builds on [41597].
Props sayedwp, westonruter, melchoyce, JoshuaWold, folletto, stubgo, karmatosed, dlh, paaljoachim, afercia, johnregan3, utkarshpatel, valendesigns.
See #30937.
Fixes #39896, #28721, #39275.

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


git-svn-id: http://core.svn.wordpress.org/trunk@41461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-27 22:25:46 +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 TinyMCE: update to 4.6.7, changelog: https://www.tinymce.com/docs/changelog/#version467september182017. 2017-09-26 21:15:47 +00:00
admin-bar.js
admin-bar.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
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 Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
backbone.min.js External Libraries: Update Backbone to version 1.3.3. 2016-06-16 09:27:29 +00:00
colorpicker.js
colorpicker.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
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 Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
customize-models.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-models.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
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: Fix ability to shift-click on placeholder/pre-saved nav menu items in preview to focus on corresponding control. 2016-12-10 23:47:41 +00:00
customize-preview-widgets.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-preview-widgets.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
customize-preview.js Customize: Introduce drafting and scheduling for Customizer changesets. 2017-09-27 22:25:46 +00:00
customize-preview.min.js Customize: Introduce drafting and scheduling for Customizer changesets. 2017-09-27 22:25:46 +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 Customize: Prevent vertical clipping of thumbnail in header image customizer control. 2017-02-20 00:10:49 +00:00
heartbeat.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
heartbeat.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
json2.js
json2.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
masonry.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:48:31 +00:00
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: Remove `alt` fallbacks to improve accessibility. 2016-10-19 03:06:28 +00:00
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 Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
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 Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
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 Text Changes: Unify permission error message in `wp-ajax-response.js`. 2016-11-15 20:42:30 +00:00
wp-ajax-response.min.js Text Changes: Unify permission error message in `wp-ajax-response.js`. 2016-11-15 20:42:30 +00:00
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 Themes: Improve a11y and extendability of custom video headers. 2016-11-16 23:26:31 +00:00
wp-embed-template.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed-template.min.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-embed.min.js Embeds: Correctly remove security attribute from iframes in IE 10 and IE 11. 2016-11-23 13:38:33 +00:00
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 Emoji: Update the Twemoji loader to include the rainbow flag. 2016-08-04 20:51:31 +00:00
wp-emoji.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
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 Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
wp-lists.js wpLists: Pass the current element to `process()` to properly register event handlers. 2016-10-03 18:39:30 +00:00
wp-lists.min.js Bump grunt-contrib-uglify from 1.0.1 to 2.0.0 2016-11-03 05:40:34 +00:00
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 Multisite: Change `WP_Network` `id` property to an integer. 2016-06-26 14:26:29 +00:00
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 Libraries: Update zxcvbn from version 1.0 to 4.4.1 2016-12-13 11:23:42 +00:00