[wp-trac] [WordPress Trac] #22058: Improve custom background properties UI

WordPress Trac noreply at wordpress.org
Sun Nov 13 02:42:07 UTC 2016


#22058: Improve custom background properties UI
-------------------------------------+-------------------------------------
 Reporter:  grapplerulrich           |       Owner:  westonruter
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  4.7
Component:  Customize                |     Version:  3.4.2
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-           |     Focuses:  ui, accessibility,
  screenshots                        |  administration
-------------------------------------+-------------------------------------

Comment (by westonruter):

 In [changeset:"39209"]:
 {{{
 #!CommitTicketReference repository="" revision="39209"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22058#comment:113>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list