@@ 328-332 (lines=5) @@ | ||
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; |
|
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 | ||
@@ 386-390 (lines=5) @@ | ||
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; |
|
388 | $image['width'] = $width; |
|
389 | $image['height'] = $height; |
|
390 | } |
|
391 | } |
|
392 | ||
393 | // Finally fall back, blank image |