[wp-trac] [WordPress Trac] #15606: Support thumbnails for non-image media types
WordPress Trac
noreply at wordpress.org
Thu May 22 15:18:35 UTC 2014
#15606: Support thumbnails for non-image media types
---------------------------+-----------------------
Reporter: acumensystems | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+-----------------------
Comment (by Otto42):
I might be wrong, but I think all one would need to do to add thumbnails
for other files is to a) generate them, b) save them somewhere in wp-
content, and c) add their file paths to the attachment_metadata using the
'thumb' name.
If you do that, then it seems like wp_get_attachment_thumb_url will try to
do image_downsize, fail on that because it's not an image, then call
wp_get_attachment_thumb_file, which returns the 'thumb' metadata, which
gets str_replaced into a URL.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15606#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list