@@ 316-319 (lines=4) @@ | ||
313 | if ( $post_images && ! is_wp_error( $post_images ) ) { |
|
314 | foreach ( (array) $post_images as $post_image ) { |
|
315 | $image['src'] = $post_image['src']; |
|
316 | if ( isset( $post_image['src_width'], $post_image['src_height'] ) ) { |
|
317 | $image['width'] = $post_image['src_width']; |
|
318 | $image['height'] = $post_image['src_height']; |
|
319 | } |
|
320 | if ( ! empty( $post_image['alt_text'] ) ) { |
|
321 | $image['alt_text'] = $post_image['alt_text']; |
|
322 | } |
@@ 185-188 (lines=4) @@ | ||
182 | ) |
|
183 | ); |
|
184 | ||
185 | if ( false !== $dimensions[ $image['src'] ] ) { |
|
186 | $image['src_width'] = $dimensions['width']; |
|
187 | $image['src_height'] = $dimensions['height']; |
|
188 | } |
|
189 | } |
|
190 | ||
191 | $metadata['image'] = array( |