diff --git a/wp-includes/media.php b/wp-includes/media.php index 49c156825f..bafb0a4aa6 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1261,7 +1261,7 @@ function wp_prepare_attachment_for_js( $attachment ) { 'mime' => $attachment->post_mime_type, 'type' => $type, 'subtype' => $subtype, - 'icon' => wp_mime_type_icon( $attachment->post_mime_type ), + 'icon' => wp_mime_type_icon( $attachment->ID ), 'dateFormatted' => mysql2date( get_option('date_format'), $attachment->post_date ), );