diff --git a/wp-themes.com/public_html/wp-content/mu-plugins/pub/starter-content.php b/wp-themes.com/public_html/wp-content/mu-plugins/pub/starter-content.php index 38e5328d9..b9c4c342a 100644 --- a/wp-themes.com/public_html/wp-content/mu-plugins/pub/starter-content.php +++ b/wp-themes.com/public_html/wp-content/mu-plugins/pub/starter-content.php @@ -228,12 +228,18 @@ class Starter_Content { ltrim( $image_data['file'], '/' ) ); - $image_sizes = wp_get_registered_image_subsizes(); - $width = 0; - $height = 0; - if ( ! empty( $image_sizes[ $size ] ) ) { - $width = $image_sizes[ $size ]['width']; - $height = $image_sizes[ $size ]['height']; + if ( is_array( $size ) ) { + $width = $size[0] ?? 0; + $height = $size[1] ?? 0; + } else { + $image_sizes = wp_get_registered_image_subsizes(); + $width = 0; + $height = 0; + + if ( ! empty( $image_sizes[ $size ] ) ) { + $width = $image_sizes[ $size ]['width']; + $height = $image_sizes[ $size ]['height']; + } } return array( $image_url, $width, $height );