[wp-trac] [WordPress Trac] #65317: Removal of HTML5 script theme support affects older theme gallery layout in frontend
WordPress Trac
noreply at wordpress.org
Fri May 22 08:08:02 UTC 2026
#65317: Removal of HTML5 script theme support affects older theme gallery layout in
frontend
---------------------------+-----------------------------
Reporter: Ov3rfly | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 7.0
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
This is a follow-up to #64442.
On a website with older theme [https://www.elmastudio.de/renkon-premium-
fotografie-wordpress-theme/ Renkon] 1.0.9 from ElmaStudio the WordPress
gallery shortcode causes layout issues after WordPress 7.0 update.
Reason is the removal of gallery shortcode inline CSS by the theme which
does not work any more due to missing `type` attribute in WordPress 7.0
`$gallery_style` code:
{{{
/*-----------------------------------------------------------------------------------*/
/* Remove inline styles printed when the gallery shortcode is used.
/*-----------------------------------------------------------------------------------*/
function renkon_remove_gallery_css( $css ) {
return preg_replace( "#<style type=\"text/css\">(.*?)</style>#s",
'', $css );
}
add_filter( 'gallery_style', 'renkon_remove_gallery_css' );
}}}
Out hotfix was updating the older theme code, so their filter works again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65317>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list