﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
20358	Filter image_hwstring()	wpsmith		"Make it possible to remove width and height from media HTML output functions by filtering image_hwstring(). This is perfect for responsiveness.

This can be done a few different ways:

{{{
function image_hwstring($width, $height) {
	$out = '';
	if ($width)
		$out .= 'width=""'.intval($width).'"" ';
	if ($height)
		$out .= 'height=""'.intval($height).'"" ';
	return apply_filters( 'image_hwstring', $out );
}
}}}

This could be easily filtered by something like:
add_filter( 'image_hwstring', '__return_empty_string' );

See #20357."	defect (bug)	closed	normal		Media		normal	duplicate		
