@@ 323-326 (lines=4) @@ | ||
320 | $image_size = wp_get_attachment_image_src( $image_id, $width >= 512 |
|
321 | ? 'full' |
|
322 | : array( $width, $width ) ); |
|
323 | if ( isset( $image_size[1], $image_size[2] ) ) { |
|
324 | $img_width = $image_size[1]; |
|
325 | $img_height = $image_size[2]; |
|
326 | } |
|
327 | ||
328 | if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
|
329 | $image['src'] = $image_url; |
|
@@ 381-384 (lines=4) @@ | ||
378 | $image_size = wp_get_attachment_image_src( $image_id, $max_side >= 512 |
|
379 | ? 'full' |
|
380 | : array( $max_side, $max_side ) ); |
|
381 | if ( isset( $image_size[1], $image_size[2] ) ) { |
|
382 | $img_width = $image_size[1]; |
|
383 | $img_height = $image_size[2]; |
|
384 | } |
|
385 | ||
386 | if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
|
387 | $image['src'] = $image_url; |