Wordpress/tests/qunit/wp-admin/js
Weston Ruter a92bb89f4f 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@41626 602fd350-edb4-49c9-b593-d223f7449a82
2017-09-27 22:24:37 +00:00
..
widgets Widgets: Introduce Gallery widget for displaying image galleries. 2017-09-25 06:27:32 +00:00
customize-base.js Customize: Add global notifications area. 2017-09-12 07:02:49 +00:00
customize-controls-utils.js Customizer: Move private helper functions to `wp.customize.utils` so they can be unit tested. 2014-12-02 22:55:48 +00:00
customize-controls.js Customize: Introduce drafting and scheduling for Customizer changesets. 2017-09-27 22:24:37 +00:00
customize-header.js Customizer: Allow to skip cropping header images if image width is smaller than or equal to theme width. 2014-04-25 20:24:28 +00:00
customize-nav-menus.js Remove `svn:executable` property from Requests and some other files. 2016-07-13 14:38:21 +00:00
customize-widgets.js Customize: Re-architect and harden panel/section UI logic. 2016-09-23 22:22:09 +00:00
nav-menu.js REST API: JS client - QUnit tests for custom namespace route discovery. 2017-02-24 18:39:39 +00:00
password-strength-meter.js Libraries: Update zxcvbn from version 1.0 to 4.4.1 2016-12-13 11:22:28 +00:00
updates.js Update/Install: Shiny Updates v2. 2016-06-15 16:36:07 +00:00
word-count.js Editor: word count: better names for types. 2015-07-27 11:18:55 +00:00