diff --git a/src/wp-admin/includes/image.php b/src/wp-admin/includes/image.php
index f937bdc2ff..73ce38d1c7 100644
|
a
|
b
|
function wp_read_image_metadata( $file ) { |
| 874 | 874 | } |
| 875 | 875 | } elseif ( empty( $meta['caption'] ) && ! empty( $exif['Comments'] ) ) { |
| 876 | 876 | $meta['caption'] = trim( $exif['Comments'] ); |
| | 877 | } elseif ( empty( $meta['caption'] ) && ! empty( $exif['COMPUTED']['UserComment'] ) ) { |
| | 878 | $meta['caption'] = trim( $exif['COMPUTED']['UserComment'] ); |
| | 879 | $description_length = strlen( $exif['COMPUTED']['UserComment'] ); |
| | 880 | if ( empty( $meta['title'] ) && $description_length < 80 ) { |
| | 881 | $meta['title'] = trim( $exif['COMPUTED']['UserComment'] ); |
| | 882 | } |
| 877 | 883 | } |
| 878 | 884 | |
| 879 | 885 | if ( empty( $meta['credit'] ) ) { |