wordpress-plugin
wordpress-plugin copied to clipboard
Return original image attributes if not on same domain
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