Skip to content

Conversation

tambait
Copy link

@tambait tambait commented May 20, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant