mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 16:51:32 +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 |
||
---|---|---|
.. | ||
twentyeleven | ||
twentyfifteen | ||
twentyfourteen | ||
twentynineteen | ||
twentyseventeen | ||
twentysixteen | ||
twentyten | ||
twentythirteen | ||
twentytwelve | ||
twentytwenty | ||
twentytwentyone | ||
twentytwentytwo | ||
index.php |