mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-06 10:50:56 +01:00
dc1136b94e
Calling `twenty_twenty_one_get_attachment_image_attributes()` was causing an `Undefined index: width|height` notice to be thrown when the result from `wp_get_attachment_metadata()` does not set any value to `$meta`. This change adds an `isset()` check to prevent it. Props wetah, hasanuzzamanshamim. Fixes #54464. Built from https://develop.svn.wordpress.org/trunk@52217 git-svn-id: http://core.svn.wordpress.org/trunk@51809 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
back-compat.php | ||
block-patterns.php | ||
block-styles.php | ||
custom-css.php | ||
menu-functions.php | ||
starter-content.php | ||
template-functions.php | ||
template-tags.php |