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
..
2016-11-11 09:47:43 +00:00
2016-11-13 02:43:29 +00:00
2016-10-29 21:32:33 +00:00
2016-11-13 02:43:29 +00:00
2016-10-31 06:28:32 +00:00
2016-10-05 03:24:37 +00:00
2016-11-10 03:35:30 +00:00
2016-10-31 06:40:49 +00:00
2016-10-19 04:47:30 +00:00
2016-10-24 04:45:31 +00:00
2016-08-23 23:18:29 +00:00
2016-11-09 23:00:32 +00:00
2016-10-31 06:28:32 +00:00
2016-08-08 18:49:28 +00:00
2016-11-09 03:42:30 +00:00
2016-10-25 21:26:32 +00:00
2016-11-09 23:00:32 +00:00
2016-10-25 00:45:29 +00:00
2016-08-31 16:31:29 +00:00
2016-10-25 20:16:56 +00:00
2016-08-31 16:31:29 +00:00
2016-10-31 06:28:32 +00:00
2016-10-05 03:24:37 +00:00
2016-08-23 23:33:28 +00:00
2016-09-08 07:06:30 +00:00
2016-10-31 06:28:32 +00:00
2016-11-05 16:28:33 +00:00
2016-08-23 14:33:30 +00:00
2016-10-21 02:54:34 +00:00
2016-08-26 19:09:27 +00:00
2016-11-10 02:56:30 +00:00
2016-11-11 23:24:30 +00:00
2016-11-04 17:17:26 +00:00
2016-08-31 16:31:29 +00:00
2016-10-19 18:15:31 +00:00
2016-08-31 16:31:29 +00:00
2016-10-18 20:05:31 +00:00
2016-08-26 18:06:39 +00:00
2016-10-26 22:01:33 +00:00
2016-08-26 09:53:28 +00:00
2016-08-26 09:58:28 +00:00
2016-08-25 18:18:39 +00:00
2016-08-25 18:18:39 +00:00
2016-09-08 04:17:30 +00:00
2016-07-27 15:32:27 +00:00
2016-10-05 03:51:28 +00:00
2016-08-22 21:28:27 +00:00
2016-11-09 21:05:30 +00:00
2016-08-20 23:36:28 +00:00
2016-10-25 21:26:32 +00:00
2016-10-26 15:36:31 +00:00
2016-08-31 05:49:37 +00:00
2016-08-26 18:11:39 +00:00
2016-10-10 06:38:31 +00:00
2016-10-21 02:54:34 +00:00
2016-09-14 21:58:29 +00:00
2016-10-26 08:07:30 +00:00
2016-10-31 06:34:34 +00:00
2016-10-07 19:44:28 +00:00
2016-11-02 05:55:30 +00:00
2016-08-25 17:44:31 +00:00
2016-08-25 18:18:39 +00:00
2016-08-25 18:18:39 +00:00
2016-10-21 02:54:34 +00:00
2016-10-25 23:44:30 +00:00
2016-10-10 06:38:31 +00:00
2016-10-07 17:12:29 +00:00
2016-10-31 15:47:33 +00:00
2016-08-26 19:09:27 +00:00
2016-08-25 17:37:30 +00:00
2016-08-25 17:37:30 +00:00
2016-11-08 22:41:30 +00:00
2016-08-25 17:44:31 +00:00
2016-10-10 06:38:31 +00:00
2016-10-10 06:38:31 +00:00
2016-07-20 16:57:32 +00:00
2016-10-31 06:28:32 +00:00
2016-10-31 01:27:31 +00:00
2016-10-25 20:48:29 +00:00
2016-08-26 18:06:39 +00:00
2016-10-26 14:48:29 +00:00
2016-11-09 23:00:32 +00:00
2016-08-10 16:10:31 +00:00
2016-08-26 09:22:30 +00:00
2016-10-10 06:38:31 +00:00
2016-10-20 09:13:29 +00:00
2016-10-28 03:43:30 +00:00
2016-10-31 06:28:32 +00:00
2016-11-03 05:40:34 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-25 20:48:29 +00:00
2016-10-24 04:45:31 +00:00
2016-11-03 05:40:34 +00:00
2016-11-01 09:16:31 +00:00
2016-10-18 20:05:31 +00:00
2016-09-04 04:09:28 +00:00
2016-11-04 17:17:56 +00:00
2016-10-19 04:47:30 +00:00
2016-10-13 22:25:31 +00:00
2016-11-08 23:01:31 +00:00
2016-10-31 07:06:32 +00:00
2016-11-04 17:13:27 +00:00
2016-10-26 07:28:32 +00:00
2016-11-03 02:23:29 +00:00
2016-11-01 06:54:34 +00:00
2016-11-02 00:31:32 +00:00
2016-10-19 04:47:30 +00:00
2016-10-26 03:39:29 +00:00
2016-09-27 20:05:28 +00:00
2016-11-11 22:20:33 +00:00
2016-10-26 03:39:29 +00:00
2016-08-31 16:31:29 +00:00
2016-10-26 01:58:30 +00:00
2016-10-25 21:26:32 +00:00
2016-10-31 16:07:31 +00:00
2016-11-02 04:27:34 +00:00
2016-09-12 01:50:30 +00:00
2016-10-26 08:07:30 +00:00
2016-11-09 23:00:32 +00:00
2016-08-31 06:21:41 +00:00
2016-11-08 06:42:32 +00:00
2016-11-09 23:00:32 +00:00
2016-10-31 06:28:32 +00:00
2016-11-10 13:53:32 +00:00
2016-10-23 14:25:31 +00:00
2016-11-09 23:00:32 +00:00
2016-10-07 21:03:31 +00:00
2016-10-26 08:07:30 +00:00
2016-11-13 02:43:29 +00:00
2016-08-31 16:31:29 +00:00
2016-10-26 15:36:31 +00:00
2016-08-31 15:22:31 +00:00
2016-11-13 02:43:29 +00:00
2016-11-09 23:00:32 +00:00
2016-08-31 16:31:29 +00:00