WordPress/wp-includes/customize
Weston Ruter e5b82c250f Customize: Improve extensibility of Custom CSS.
* Add `customize_value_custom_css` filter to `WP_Customize_Custom_CSS::value()` method.
* Introduce `customize_update_custom_css_post_content_args` filter in `WP_Customize_Custom_CSS::update()` method.
* Make clear that `wp_get_custom_css()` and `wp_get_custom_css` filter are specifically for obtaining the value to render/display. Eliminate use of `wp_get_custom_css()` when getting the setting value. Use the underlying `post_value` directly when `is_previewed`.
* Move anonymous functions handing JS previewing for `custom_logo`, `custom_css`, and `background` into named functions on the `wp.customize.settingPreviewHandlers` to allow plugins to override/extend preview logic.
* Update `_custom_background_cb` to always print a `style` tag wen in the customizer preview, and update background preview logic to replace existing style element instead of appending a new style to the head so that background changes don't unexpectedly override any Custom CSS in the preview's stylesheet cascade.

Props westonruter, georgestephanis.
See #22058.
Fixes #38672.

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


git-svn-id: http://core.svn.wordpress.org/trunk@39149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-13 02:43:29 +00:00
..
class-wp-customize-background-image-control.php
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
class-wp-customize-color-control.php
class-wp-customize-cropped-image-control.php
class-wp-customize-custom-css-setting.php Customize: Improve extensibility of Custom CSS. 2016-11-13 02:43:29 +00:00
class-wp-customize-filter-setting.php
class-wp-customize-header-image-control.php Customize: For Header Image, ensure "Previously uploaded" and "Suggested" headings are hidden when lists are empty. 2016-11-04 23:15:33 +00:00
class-wp-customize-header-image-setting.php
class-wp-customize-image-control.php
class-wp-customize-media-control.php
class-wp-customize-nav-menu-auto-add-control.php
class-wp-customize-nav-menu-control.php
class-wp-customize-nav-menu-item-control.php
class-wp-customize-nav-menu-item-setting.php
class-wp-customize-nav-menu-location-control.php
class-wp-customize-nav-menu-name-control.php
class-wp-customize-nav-menu-section.php
class-wp-customize-nav-menu-setting.php
class-wp-customize-nav-menus-panel.php
class-wp-customize-new-menu-control.php
class-wp-customize-new-menu-section.php
class-wp-customize-partial.php
class-wp-customize-selective-refresh.php Customize: Remove edit shortcut toggle button from preview since visibility is now linked with pane visibility. 2016-11-04 20:54:30 +00:00
class-wp-customize-sidebar-section.php
class-wp-customize-site-icon-control.php
class-wp-customize-theme-control.php
class-wp-customize-themes-section.php
class-wp-customize-upload-control.php
class-wp-widget-area-customize-control.php
class-wp-widget-form-customize-control.php