[wp-trac] [WordPress Trac] #39883: Code hooking on `image_downsize` can no longer assume the file is an image

WordPress Trac noreply at wordpress.org
Mon May 22 19:45:06 UTC 2017


#39883: Code hooking on `image_downsize` can no longer assume the file is an image
-----------------------------------+------------------------
 Reporter:  stephdau               |       Owner:  joemcgill
     Type:  defect (bug)           |      Status:  assigned
 Priority:  normal                 |   Milestone:  4.8
Component:  Media                  |     Version:  4.7
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------

Comment (by stephdau):

 In [attachment:39883.2.diff], we should make `$supported_types = array(
 'image', 'pdf' );` filterable. In our install, we currently do not support
 PDF thumbnails, for example, and that would let us short-circuit the
 function when facing a PDF. It would also let integrators add their own
 types of supported types, should they need to.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39883#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list