[wp-trac] [WordPress Trac] #63695: viewStyle is loaded in the footer when the active theme is the classic theme
WordPress Trac
noreply at wordpress.org
Sat Jul 12 05:49:46 UTC 2025
#63695: viewStyle is loaded in the footer when the active theme is the classic
theme
--------------------------+------------------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by wildworks):
I believe [https://github.com/WordPress/wordpress-develop/pull/9249 PR
#9249] should fix this issue.
=== Testing Instructions
- Download and install the
[https://core.trac.wordpress.org/attachment/ticket/63695/test.zip test.zip
file, which contains a custom block with `viewStyle` and `style` fields
defined.
- Insert the Test block into the content.
- Check the frontend.
==== The block theme is active, and there are blocks on the page
Both styles are loaded in the head tag (as before).
==== The block theme is active, and there are no blocks on the page
Both styles are not loaded (as before).
==== The classic theme is active, and there are blocks on the page
Both styles are loaded in the head tag (fixed by this PR).
==== The classic theme is active, and there are no blocks on the page
Both styles are not loaded (fixed by this PR).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63695#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list