mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
Update image replacement check
Only retrieve the old banner image size if the image size is set to the new one and a version that size does not exist.
This commit is contained in:
@@ -52,7 +52,7 @@ class Display_Featured_Image_Genesis_Common {
|
||||
$image_id = self::set_image_id();
|
||||
$image_size = self::image_size();
|
||||
$item->backstretch = wp_get_attachment_image_src( $image_id, $image_size );
|
||||
if ( empty( $item->backstretch[3] ) ) {
|
||||
if ( empty( $item->backstretch[3] ) && '2048x2048' === $image_size ) {
|
||||
$item->backstretch = wp_get_attachment_image_src( $image_id, 'displayfeaturedimage_backstretch' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user