﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
65317	Removal of HTML5 script theme support affects older theme gallery layout in frontend	Ov3rfly		"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."	defect (bug)	new	normal	Awaiting Review	Script Loader	7.0	normal		close		
