wordpress-plugin icon indicating copy to clipboard operation
wordpress-plugin copied to clipboard

Return original image attributes if not on same domain

Open tambait opened this issue 8 months ago • 0 comments

This PR updates the image_attributes() method to ensure it returns the original $attributes array when an image is hosted on a different domain. Otherwise WP will break and throw an error

PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null given in .../wp-includes/media.php:1172

tambait avatar May 20 '25 19:05 tambait