[wp-trac] [WordPress Trac] #65317: Removal of HTML5 script theme support affects older theme gallery layout in frontend
WordPress Trac
noreply at wordpress.org
Mon Jun 1 21:41:53 UTC 2026
#65317: Removal of HTML5 script theme support affects older theme gallery layout in
frontend
---------------------------+-----------------------
Reporter: Ov3rfly | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Script Loader | Version: 7.0
Severity: normal | Resolution:
Keywords: close | Focuses:
---------------------------+-----------------------
Comment (by sabernhardt):
> recent change #64442 in WordPress 7.0 which now breaks older sites with
this theme and other themes which also copied that Twenty Ten approach in
a similar way.
7.0 would only //start// to break the gallery shortcode output for themes
that use `preg_replace` with the `type` in double quotes within the
`gallery_style` hook.
`<style type=\"text/css\">`
Twenty Ten and the other themes in the directory search all tried
replacing the `<style>` tag with the `type` in single quotes (see
[https://docs.google.com/spreadsheets/d/1A2dEiy9oJOx0Ls4DJtpNEW4dJa4WTXOoRU5cXEIA5D8/edit?usp=sharing
spreadsheet]). At least 16 of those 70 themes already failed to remove the
`<style>` tag in WordPress 5.3, and I [https://wordpress.org/support/topic
/gallery_style-filter-does-not-remove-tag/ reported this to the author] of
the 4 most popular of them.
A dev note could still help other theme authors, though I do not plan to
write it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65317#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list