[wp-trac] [WordPress Trac] #21627: Filter for custom-background CSS selector

WordPress Trac noreply at wordpress.org
Tue Apr 28 06:39:35 UTC 2015


#21627: Filter for custom-background CSS selector
-------------------------+-----------------------------
 Reporter:  Horttcore    |       Owner:  Horttcore
     Type:  enhancement  |      Status:  new
 Priority:  low          |   Milestone:  Future Release
Component:  Customize    |     Version:  3.4.1
 Severity:  minor        |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------

Comment (by westonruter):

 Replying to [comment:14 peterwilsoncc]:
 > Sorry, ignore .3
 >
 > 21627.4.diff builds on @westonruter's patch to include:
 > * customize-preview.js
 > * take theme authors preference in get_body_class()
 >
 > customize-preview.js requires the element be selectable without the
 class, so I've split the element and the selector into two options applied
 to the theme-support array.

 Thanks, but accessing settings from the parent frame via
 `window.parent._wpCustomizeSettings` isn't going to make it into Core. So
 either you need to use `postMessage` passing, or export the settings
 directly into the preview instead via
 `WP_Customize_Manager::customize_preview_settings()`.

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


More information about the wp-trac mailing list