plugin updates

This commit is contained in:
Tony Volpe
2024-07-16 13:57:46 +00:00
parent 41f50eacc4
commit 8f93917880
1529 changed files with 259452 additions and 25451 deletions

View File

@@ -272,6 +272,12 @@ class WC_Regenerate_Images {
$imagedata['width'] = $imagedata['sizes']['full']['width'];
}
// The result of the earlier wp_get_attachment_metadata call is filterable, so we may not have height or
// width data at this point.
if ( ! isset( $imagedata['height'] ) || ! isset( $imagedata['width'] ) ) {
return array();
}
return array(
'width' => $imagedata['width'],
'height' => $imagedata['height'],