WordPress/wp-content/themes
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
..
twentyeleven Twenty Eleven: Improve comment form styling for required fields. 2021-11-13 04:24:59 +00:00
twentyfifteen Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
twentyfourteen Toolbar: Prevent adminbar from hiding in-page anchors. 2021-11-17 17:20:00 +00:00
twentynineteen Twenty Nineteen: Apply coding standards fix from running composer format. 2021-11-16 15:03:00 +00:00
twentyseventeen Toolbar: Prevent adminbar from hiding in-page anchors. 2021-11-17 17:20:00 +00:00
twentysixteen Twenty Sixteen: Correctly align columns within table blocks as configured in the editor. 2021-11-18 20:22:01 +00:00
twentyten Bundled Themes: Remove redundant semicolons after closing curly brackets. 2021-08-05 13:25:58 +00:00
twentythirteen Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
twentytwelve Bundled Themes: Remove the "role" attribute on HTML elements with a default landmark role. 2021-11-04 18:18:01 +00:00
twentytwenty Build/Test Tools: Update/Audit NPM dependencies for bundled themes. 2021-11-08 16:26:01 +00:00
twentytwentyone Twenty Twenty-One: Prevent notice thrown in twenty_twenty_one_get_attachment_image_attributes(). 2021-11-19 17:56:00 +00:00
twentytwentytwo Twenty Twenty-Two: Import the latest changes from GitHub. 2021-11-15 19:15:04 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00