| @@ 330-333 (lines=4) @@ | ||
| 327 | if ( $post_images && ! is_wp_error( $post_images ) ) { |
|
| 328 | foreach ( (array) $post_images as $post_image ) { |
|
| 329 | $image['src'] = $post_image['src']; |
|
| 330 | if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) { |
|
| 331 | $image['width'] = $post_image['src_width']; |
|
| 332 | $image['height'] = $post_image['src_height']; |
|
| 333 | } |
|
| 334 | if ( ! empty( $post_image['alt_text'] ) ) { |
|
| 335 | $image['alt_text'] = $post_image['alt_text']; |
|
| 336 | } |
|
| @@ 268-271 (lines=4) @@ | ||
| 265 | ) |
|
| 266 | ); |
|
| 267 | ||
| 268 | if ( false !== $dimensions[ $image['src'] ] ) { |
|
| 269 | $image['src_width'] = $dimensions['width']; |
|
| 270 | $image['src_height'] = $dimensions['height']; |
|
| 271 | } |
|
| 272 | } |
|
| 273 | ||
| 274 | $metadata['image'] = array( |
|