|
@@ 328-332 (lines=5) @@
|
| 325 |
|
$image_size = getimagesize( $image_url ); |
| 326 |
|
$img_width = $image_size[0]; |
| 327 |
|
$img_height = $image_size[1]; |
| 328 |
|
if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
| 329 |
|
$image['src'] = $image_url; |
| 330 |
|
$image['width'] = $width; |
| 331 |
|
$image['height'] = $height; |
| 332 |
|
} |
| 333 |
|
} |
| 334 |
|
} |
| 335 |
|
|
|
@@ 342-346 (lines=5) @@
|
| 339 |
|
if ( ! empty( $image_dimensions ) ) { |
| 340 |
|
$img_width = $image_dimensions['width']; |
| 341 |
|
$img_height = $image_dimensions['height']; |
| 342 |
|
if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
| 343 |
|
$image['src'] = jetpack_get_site_logo( 'url' ); |
| 344 |
|
$image['width'] = $width; |
| 345 |
|
$image['height'] = $height; |
| 346 |
|
} |
| 347 |
|
} |
| 348 |
|
} |
| 349 |
|
|
|
@@ 356-360 (lines=5) @@
|
| 353 |
|
$image_size = getimagesize( $image_url ); |
| 354 |
|
$img_width = $image_size[0]; |
| 355 |
|
$img_height = $image_size[1]; |
| 356 |
|
if (_jetpack_og_get_image_validate_size($img_width, $img_height, $width, $height)) { |
| 357 |
|
$image['src'] = $image_url; |
| 358 |
|
$image['width'] = $width; |
| 359 |
|
$image['height'] = $height; |
| 360 |
|
} |
| 361 |
|
} |
| 362 |
|
|
| 363 |
|
// Finally fall back, blank image |