@@ 332-335 (lines=4) @@ | ||
329 | $image_size = wp_get_attachment_image_src( $image_id, $width >= 512 |
|
330 | ? 'full' |
|
331 | : array( $width, $width ) ); |
|
332 | if ( isset( $image_size[1], $image_size[2] ) ) { |
|
333 | $img_width = $image_size[1]; |
|
334 | $img_height = $image_size[2]; |
|
335 | } |
|
336 | ||
337 | if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
|
338 | $image['src'] = $image_url; |
|
@@ 370-373 (lines=4) @@ | ||
367 | $image_size = wp_get_attachment_image_src( $image_id, $max_side >= 512 |
|
368 | ? 'full' |
|
369 | : array( $max_side, $max_side ) ); |
|
370 | if ( isset( $image_size[1], $image_size[2] ) ) { |
|
371 | $img_width = $image_size[1]; |
|
372 | $img_height = $image_size[2]; |
|
373 | } |
|
374 | ||
375 | if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
|
376 | $image['src'] = $image_url; |