[wp-trac] [WordPress Trac] #63589: Unable to live preview changes to Additional CSS in the Customizer when using a Block Theme
WordPress Trac
noreply at wordpress.org
Wed Jun 18 00:47:59 UTC 2025
#63589: Unable to live preview changes to Additional CSS in the Customizer when
using a Block Theme
--------------------------+--------------------
Reporter: westonruter | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.8.2
Component: Customize | Version: 6.2
Severity: normal | Keywords:
Focuses: |
--------------------------+--------------------
Adding the Additional CSS from the Customizer to the global styles makes
sense, except not in the Customizer preview. This is because `wp-
includes/js/customize-preview.js` is supposed to
[https://github.com/WordPress/wordpress-
develop/blob/d2613dae28655792b8a65f1fea86e238c243554a/src/js/_enqueues/wp/customize/preview.js#L635-L643
dynamically update] the `STYLE#wp-custom-css` element with the new
stylesheet whenever it changes. So this PR prevents putting the Additional
CSS into the global styles when in the Customizer preview context.
This issue was introduced in
[https://github.com/WordPress/gutenberg/pull/58991 Gutenberg#58991] and
core commits [55192] and [58703].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63589>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list