3rd-party/class.jetpack-amp-support.php 1 location
|
@@ 165-168 (lines=4) @@
|
| 162 |
|
$image['src'] => false, |
| 163 |
|
) ); |
| 164 |
|
|
| 165 |
|
if ( false !== $dimensions[ $image['src'] ] ) { |
| 166 |
|
$image['src_width'] = $dimensions['width']; |
| 167 |
|
$image['src_height'] = $dimensions['height']; |
| 168 |
|
} |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$metadata['image'] = array( |
functions.opengraph.php 1 location
|
@@ 279-282 (lines=4) @@
|
| 276 |
|
if ( $post_images && ! is_wp_error( $post_images ) ) { |
| 277 |
|
foreach ( (array) $post_images as $post_image ) { |
| 278 |
|
$image['src'] = $post_image['src']; |
| 279 |
|
if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) { |
| 280 |
|
$image['width'] = $post_image['src_width']; |
| 281 |
|
$image['height'] = $post_image['src_height']; |
| 282 |
|
} |
| 283 |
|
} |
| 284 |
|
} |
| 285 |
|
} |