WordPress/wp-content/themes/twentytwentyone/inc
audrasjb dc1136b94e Twenty Twenty-One: Prevent notice thrown in twenty_twenty_one_get_attachment_image_attributes().
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
2021-11-19 17:56:00 +00:00
..
back-compat.php Twenty Twenty-One: Correct @since inline documentation tags. 2020-12-17 14:57:07 +00:00
block-patterns.php Bundled Themes: Revert the [51372] update to block patterns in bundled themes. 2021-07-14 20:02:59 +00:00
block-styles.php Twenty Twenty-One: Correct @since inline documentation tags. 2020-12-17 14:57:07 +00:00
custom-css.php Twenty Twenty-One: Improve documentation per the documentation standards: 2021-07-01 12:59:57 +00:00
menu-functions.php Twenty Twenty-One: Keep the closing </span> tag in footer links. 2021-10-02 17:06:00 +00:00
starter-content.php Twenty Twenty-One: Correct accent marks in block pattern alt text. 2021-02-12 00:03:04 +00:00
template-functions.php Twenty Twenty-One: Prevent notice thrown in twenty_twenty_one_get_attachment_image_attributes(). 2021-11-19 17:56:00 +00:00
template-tags.php Twenty Twenty-One: Capitalize translator comments consistently. 2021-02-07 12:28:08 +00:00