Update image size references

Where possible, use the newly registered image size. The original image
size will be available to call on for backup, for images uploaded prior
to WordPress 5.3.
This commit is contained in:
Robin Cornett
2019-10-23 18:47:15 -04:00
parent 72a5580245
commit 261c0e1599
6 changed files with 20 additions and 39 deletions
@@ -172,7 +172,7 @@ class Display_Featured_Image_Genesis_Output {
$image_id = displayfeaturedimagegenesis_get()->set_image_id();
return wp_get_attachment_image(
$image_id,
displayfeaturedimagegenesis_get()->banner_image_size(),
'2048x2048',
false,
array(
'alt' => $this->get_image_alt_text( $image_id ),