[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
Tue Feb 28 14:31:12 UTC 2017


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

Comment (by stephdau):

 Replying to [comment:7 azaozz]:
 > Best option imho is to introduce new function(s) specifically for
 handling the cases where a non-image attachment post also contains preview
 image, then revert the changes to the above two functions.

 As discussed, I wholeheartedly agree. Thanks @azaozz :)

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


More information about the wp-trac mailing list