Wordpress/src/wp-admin
Weston Ruter 630fd305fc 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@38991 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-28 02:56:16 +00:00
..
css Accessibility: Remove inappropriate content from the Posts and Edit screens headings. 2016-10-27 20:38:09 +00:00
images
includes Customize: Introduce starter content and site freshness state. 2016-10-28 02:56:16 +00:00
js Customize: Introduce starter content and site freshness state. 2016-10-28 02:56:16 +00:00
maint
network Administration: Switch to `handle_network_bulk_actions-{$screen}` for the bulk listing screen actions in the network admin area. 2016-10-26 14:36:06 +00:00
user
about.php About Page: Use `get_user_language()` for the video subtitles. 2016-10-26 12:10:35 +00:00
admin-ajax.php
admin-footer.php
admin-functions.php
admin-header.php Multisite: Use `get_network()` and `get_current_network_id()` for current network data. 2016-10-19 04:46:14 +00:00
admin-post.php
admin.php
async-upload.php
comment.php Accessibility: Remove target=_blank from the comment/edit-comments help tabs links. 2016-10-04 06:53:20 +00:00
credits.php
custom-background.php Customize: Improve custom background properties UI. 2016-10-26 06:51:11 +00:00
custom-header.php Accessibility: Remove target=_blank from the old custom background/header help tabs links. 2016-10-04 06:56:02 +00:00
customize.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:02:51 +00:00
edit-comments.php Administration: Standardise the docblocks for the `handle_bulk_actions-*` filters. 2016-10-26 14:44:57 +00:00
edit-form-advanced.php Accessibility: Remove inappropriate content from the Posts and Edit screens headings. 2016-10-27 20:38:09 +00:00
edit-form-comment.php Accessibility: Standardize the remove/delete/cancel links in the Menus screen and Publish meta boxes. 2016-09-17 15:38:40 +00:00
edit-link-form.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:26:09 +00:00
edit-tag-form.php Taxonomy: On `wp-admin/term.php`, don't show a 'Back to' link which links to the current page. 2016-10-07 20:12:35 +00:00
edit-tags.php Administration: Standardise the docblocks for the `handle_bulk_actions-*` filters. 2016-10-26 14:44:57 +00:00
edit.php Accessibility: Remove inappropriate content from the Posts and Edit screens headings. 2016-10-27 20:38:09 +00:00
export.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:26:09 +00:00
freedoms.php
import.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:26:09 +00:00
index.php Drop the requirement for the entry points to WordPress to be parsable by PHP4. 2016-10-25 03:14:31 +00:00
install-helper.php
install.php Administration: Improve the usage of the button CSS classes. 2016-09-28 19:53:07 +00:00
link-add.php
link-manager.php Administration: Standardise the docblocks for the `handle_bulk_actions-*` filters. 2016-10-26 14:44:57 +00:00
link-parse-opml.php General: Check to see that the PHP-XML module is enabled before using XML functions. 2016-10-24 04:44:07 +00:00
link.php
load-scripts.php
load-styles.php
media-new.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:26:09 +00:00
media-upload.php
media.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:26:09 +00:00
menu-header.php
menu.php Upgrade/Install: Refresh update counts after page load. 2016-10-19 10:26:31 +00:00
moderation.php
ms-admin.php
ms-delete-site.php I18N: Introduce a locale-switching function. 2016-10-26 15:35:58 +00:00
ms-edit.php
ms-options.php
ms-sites.php
ms-themes.php
ms-upgrade-network.php
ms-users.php
my-sites.php Multisite: Replace `get_blog_details()` in `wp-admin/my-sites.php` with `get_site()`. 2016-10-19 06:01:22 +00:00
nav-menus.php Nav Menus: Update help text to include the two latest default themes, Twenty Sixteen and Twenty Seventeen. 2016-10-25 20:00:19 +00:00
network.php
options-discussion.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:58:36 +00:00
options-general.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:58:36 +00:00
options-head.php
options-media.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:58:36 +00:00
options-permalink.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:58:36 +00:00
options-reading.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:58:36 +00:00
options-writing.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:58:36 +00:00
options.php I18N: Introduce a user-specific language setting. 2016-10-03 07:03:41 +00:00
plugin-editor.php Plugins: Correctly display the current plugin in the plugin editor. 2016-10-07 16:57:49 +00:00
plugin-install.php Accessibility: Remove target=_blank from the Plugins, Themes, Media, Update, and Tools screens help tabs links. 2016-10-04 07:07:17 +00:00
plugins.php Administration: Standardise the docblocks for the `handle_bulk_actions-*` filters. 2016-10-26 14:44:57 +00:00
post-new.php
post.php
press-this.php
profile.php
revision.php Accessibility: Remove target=_blank from the Plugins, Themes, Media, Update, and Tools screens help tabs links. 2016-10-04 07:07:17 +00:00
setup-config.php Drop the requirement for the entry points to WordPress to be parsable by PHP4. 2016-10-25 03:14:31 +00:00
term.php Taxonomy: Introduce more fine grained capabilities for managing taxonomy terms. 2016-09-30 22:39:32 +00:00
theme-editor.php Accessibility: Remove target=_blank from the Plugins, Themes, Media, Update, and Tools screens help tabs links. 2016-10-04 07:07:17 +00:00
theme-install.php Accessibility: Remove target=_blank from the Plugins, Themes, Media, Update, and Tools screens help tabs links. 2016-10-04 07:07:17 +00:00
themes.php Themes: After [38788], further improve the update button when there's no update package. 2016-10-21 10:35:51 +00:00
tools.php Accessibility: Remove target=_blank from the Plugins, Themes, Media, Update, and Tools screens help tabs links. 2016-10-04 07:07:17 +00:00
update-core.php Upgrade/Install: Refresh update counts after page load. 2016-10-19 10:26:31 +00:00
update.php
upgrade-functions.php
upgrade.php
upload.php Administration: Standardise the docblocks for the `handle_bulk_actions-*` filters. 2016-10-26 14:44:57 +00:00
user-edit.php I18N: Improve "Site Language" label for per-user language selection. 2016-10-21 10:40:02 +00:00
user-new.php I18N: Introduce a locale-switching function. 2016-10-26 15:35:58 +00:00
users.php Administration: Standardise the docblocks for the `handle_bulk_actions-*` filters. 2016-10-26 14:44:57 +00:00
widgets.php Accessibility: Remove target=_blank from the Users and Widgets screens help tabs links. 2016-10-04 07:09:12 +00:00