WordPress/wp-includes/customize
Weston Ruter 1ccd9e7a6c Customize: Introduce custom CSS for extending theme styles.
* Custom CSS is associated with a given theme and is displayed in an inline `style` element at the `wp_head` hook after the `wp_print_styles` is called so that it overrides any enqueued stylesheets.
* A `wp_get_custom_css()` function is used for accessing the CSS associated with the current theme (or another theme) and a `wp_get_custom_css` filter for manipulating it.
* CSS is managed in customizer via a new "Additional CSS" section with a single `textarea` control. 
* `WP_Customize_Section::$description_hidden` is introduced for hiding extended descriptions in customizer sections behind a help toggle as done with panels.
* CSS is stored in a `custom_css` post type with the theme (stylesheet) slug as the `post_name`.
* `WP_Customize_Custom_CSS_Setting` is introduced to handle validation of CSS, previewing, and persisting the CSS to the `custom_css` post type.
* The `custom_css` setting is tied to a new `unfiltered_css` capability which maps to `unfiltered_html` by default.
* Escaping the message in the notification template is removed to allow markup (`code` tags) to be rendered.

See https://make.wordpress.org/core/2016/10/11/feature-proposal-better-theme-customizations-via-custom-css-with-live-previews/

Props johnregan3, celloexpressions, folletto, westonruter.
Fixes #35395.

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


git-svn-id: http://core.svn.wordpress.org/trunk@38772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-19 18:15:31 +00:00
..
class-wp-customize-background-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-background-image-setting.php
class-wp-customize-color-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-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 Customize: Clean up media control CSS. 2016-05-12 20:23:54 +00:00
class-wp-customize-header-image-setting.php
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: 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-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 Docs: Apply inline `@see` tags to hooks referenced in DocBlocks for core classes. 2016-05-23 18:54:27 +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: Implement customized state persistence with changesets. 2016-10-18 20:05:31 +00:00
class-wp-customize-sidebar-section.php
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: 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-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