@@ 310-313 (lines=4) @@ | ||
307 | $image_size = wp_get_attachment_image_src( $image_id, $width >= 512 |
|
308 | ? 'full' |
|
309 | : array( $width, $width ) ); |
|
310 | if ( isset( $image_size[1], $image_size[2] ) ) { |
|
311 | $img_width = $image_size[1]; |
|
312 | $img_height = $image_size[2]; |
|
313 | } |
|
314 | ||
315 | if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
|
316 | $image['src'] = $image_url; |
|
@@ 356-359 (lines=4) @@ | ||
353 | $image_size = wp_get_attachment_image_src( $image_id, $max_side >= 512 |
|
354 | ? 'full' |
|
355 | : array( $max_side, $max_side ) ); |
|
356 | if ( isset( $image_size[1], $image_size[2] ) ) { |
|
357 | $img_width = $image_size[1]; |
|
358 | $img_height = $image_size[2]; |
|
359 | } |
|
360 | ||
361 | if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
|
362 | $image['src'] = $image_url; |