Use the attachment id to look up the mime type icon instead of the raw mime type string, as wp_mime_type_icon() runs a broader search when using an id. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22043 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
52801db5fc
commit
d2b6d050f4
@ -1320,7 +1320,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 ),
|
||||
);
|
||||
|
||||
if ( $meta && 'image' === $type ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user