WordPress/wp-includes/customize
Weston Ruter 75535c596b Customize: Introduce starter content and site freshness state.
A theme can opt-in for tailored starter content to apply to the customizer when previewing the theme on a fresh install, when `fresh_site` is at its initial `1` value. Starter content is staged in the customizer and does not go live unless the changes are published. Initial starter content is added to Twenty Seventeen.

* The `fresh_site` flag is cleared when a published post or page is saved, when widgets are modified, or when the customizer state is saved.
* Starter content is registered via `starter-content` theme support, where the argument is an array containing `widgets`, `posts`, `nav_menus`, `options`, and `theme_mods`. Posts/pages in starter content are created with the `auto-draft` status, re-using the page/post stubs feature added to nav menus and the static front page controls.
* A `get_theme_starter_content` filter allows for plugins to extend a theme's starter content.
* Starter content in themes can/should re-use existing starter content items in core by using named placeholders.
* Import theme starter content into customized state when fresh site.
* Prevent original_title differences from causing refreshes if title is present.
* Ensure nav menu item url is set according to object when previewing.
* Make sure initial saved state is false if there are dirty settings without an existing changeset.
* Ensure dirty settings are cleaned upon changeset publishing.

Props helen, westonruter, ocean90.
Fixes #38114, #38533.

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


git-svn-id: http://core.svn.wordpress.org/trunk@38934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-28 02:57:35 +00:00
..
class-wp-customize-background-image-control.php Customize: Improve custom background properties UI. 2016-10-26 06:52:29 +00:00
class-wp-customize-background-image-setting.php Customize: move `WP_Customize_Section` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:21:25 +00:00
class-wp-customize-background-position-control.php Customize: Improve custom background properties UI. 2016-10-26 06:52:29 +00:00
class-wp-customize-color-control.php Customize: Add hue-only mode to color picker. 2016-10-25 22:33:30 +00:00
class-wp-customize-cropped-image-control.php Customize: move `WP_Customize_Control` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:57:25 +00:00
class-wp-customize-custom-css-setting.php Customize: Introduce custom CSS for extending theme styles. 2016-10-19 18:15:31 +00:00
class-wp-customize-filter-setting.php Docs: Add a missing summary, `@access` tag, and parameter documentation to the DocBlock for `WP_Customize_Filter_Setting::update()`. 2016-02-27 21:17:25 +00:00
class-wp-customize-header-image-control.php Themes: Enable video in custom headers. 2016-10-27 21:51:31 +00:00
class-wp-customize-header-image-setting.php Customize: move `WP_Customize_Section` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:21:25 +00:00
class-wp-customize-image-control.php Customize: Allow `button_labels` to be overridden in `$args` passed to `WP_Customize_Media_Control` and `WP_Customize_Image_Control`. 2016-02-29 00:40:26 +00:00
class-wp-customize-media-control.php Customize: Clean up media control CSS. 2016-05-12 20:23:54 +00:00
class-wp-customize-nav-menu-auto-add-control.php I18N: Combine duplicate "Menu Locations" and "Menu Options" strings. 2016-07-17 16:47:39 +00:00
class-wp-customize-nav-menu-control.php Administration: Improve the usage of the button CSS classes. 2016-09-28 19:54:28 +00:00
class-wp-customize-nav-menu-item-control.php Customize: Ensure nav menu items lacking a label use the title from the original object. 2016-09-17 21:50:30 +00:00
class-wp-customize-nav-menu-item-setting.php Customize: Introduce starter content and site freshness state. 2016-10-28 02:57:35 +00:00
class-wp-customize-nav-menu-location-control.php Customize: Make the menu edit button look like a link. 2016-08-03 22:45:30 +00:00
class-wp-customize-nav-menu-name-control.php Customize: move `WP_Customize_Control` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:57:25 +00:00
class-wp-customize-nav-menu-section.php Customize: Ensure that `WP_Customize_Nav_Menu_Section` is able to represent a placeholder nav menu. 2016-07-06 05:33:30 +00:00
class-wp-customize-nav-menu-setting.php General: Introduce a `wp_list_sort()` helper function, v2. 2016-10-25 21:26:32 +00:00
class-wp-customize-nav-menus-panel.php Customize: Fix persistence of toggles for displayed nav menu item properties. 2016-03-09 21:41:28 +00:00
class-wp-customize-new-menu-control.php Customize: move `WP_Customize_Control` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:57:25 +00:00
class-wp-customize-new-menu-section.php Administration: Improve the usage of the button CSS classes. 2016-09-28 19:54:28 +00:00
class-wp-customize-partial.php Docs: Standardize the file header and class summaries for the file containing `WP_Customize_Partial`, introduced in [36586]. 2016-03-16 16:24:27 +00:00
class-wp-customize-selective-refresh.php Customize: Add edit shortcuts in customizer preview to visually expose editable elements and focus on the corresponding controls when clicked. 2016-10-26 20:03:32 +00:00
class-wp-customize-sidebar-section.php Customize: move `WP_Customize_Section` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:21:25 +00:00
class-wp-customize-site-icon-control.php Customize: Fix site icon preview in RTL. 2016-07-05 12:42:27 +00:00
class-wp-customize-theme-control.php Customize: Fix live preview button in theme details modal so it includes target theme. 2016-10-24 19:15:29 +00:00
class-wp-customize-themes-panel.php Customize: Introduce a new experience for discovering, installing, and previewing themes within the customizer. 2016-10-19 03:20:29 +00:00
class-wp-customize-themes-section.php Customize: Introduce a new experience for discovering, installing, and previewing themes within the customizer. 2016-10-19 03:20:29 +00:00
class-wp-customize-upload-control.php Customize: move `WP_Customize_Control` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:57:25 +00:00
class-wp-widget-area-customize-control.php Administration: Improve the usage of the button CSS classes. 2016-09-28 19:54:28 +00:00
class-wp-widget-form-customize-control.php Customize: move `WP_Customize_Control` subclasses to `wp-includes/customize`, they load in the exact same place. 2015-10-24 18:57:25 +00:00