| @@ 343-346 (lines=4) @@ | ||
| 340 | if ( $post_images && ! is_wp_error( $post_images ) ) { |
|
| 341 | foreach ( (array) $post_images as $post_image ) { |
|
| 342 | $image['src'] = $post_image['src']; |
|
| 343 | if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) { |
|
| 344 | $image['width'] = $post_image['src_width']; |
|
| 345 | $image['height'] = $post_image['src_height']; |
|
| 346 | } |
|
| 347 | if ( ! empty( $post_image['alt_text'] ) ) { |
|
| 348 | $image['alt_text'] = $post_image['alt_text']; |
|
| 349 | } |
|
| @@ 223-226 (lines=4) @@ | ||
| 220 | ) |
|
| 221 | ); |
|
| 222 | ||
| 223 | if ( false !== $dimensions[ $image['src'] ] ) { |
|
| 224 | $image['src_width'] = $dimensions['width']; |
|
| 225 | $image['src_height'] = $dimensions['height']; |
|
| 226 | } |
|
| 227 | } |
|
| 228 | ||
| 229 | $metadata['image'] = array( |
|