diff --git a/src/wp-admin/includes/image.php b/src/wp-admin/includes/image.php
index 5580ee5978..1b96a18333 100644
a
|
b
|
function wp_generate_attachment_metadata( $attachment_id, $file ) { |
490 | 490 | $support = current_theme_supports( 'post-thumbnails', 'attachment:audio' ) || post_type_supports( 'attachment:audio', 'thumbnail' ); |
491 | 491 | } |
492 | 492 | |
493 | | // wp_read_video_metadata() and wp_read_audio_metadata() return `false` if the attachment |
494 | | // does not exist in the local filesystem, so make sure to convert the value to an array. |
| 493 | /* |
| 494 | * wp_read_video_metadata() and wp_read_audio_metadata() return `false` if the attachment |
| 495 | * does not exist in the local filesystem, so make sure to convert the value to an array. |
| 496 | */ |
495 | 497 | if ( ! is_array( $metadata ) ) { |
496 | 498 | $metadata = array(); |
497 | 499 | } |