11/02/2026
add_filter('the_content', function ($content) {
if (!is_front_page() || !is_string($content)) { return $content; }
return preg_replace_callback('~~i', function ($m) {
$tag = $m;
if (preg_match('~b(?:width|height)s*=~i', $tag)) { return $tag; }
$dims = null;
if (strpos($tag, 'EHE-LOGO-PNG.png') !== false) { $dims = array(300,216); }
elseif (preg_match('~(?:src|data-src)=+-700x(541|466|525).jpg~i', $tag, $match)) { $dims = array(700,(int)$match); }
if (!$dims) { return $tag; }
return preg_replace('~