Can’t extract and set SVG dimensions
I solved it!!! The filter in fix #3 (above) wasn’t working because of the third condition of this if statement that triggers the dimension extraction and attachment: if (is_array($image) && preg_match(‘/\.svg$/i’, $image[0]) && $image[1] == 1) $image[1] in the third condition is the reported width of the SVG file as WP sees it before it … Read more