[wp-trac] [WordPress Trac] #39980: Improve

WordPress Trac noreply at wordpress.org
Tue Feb 28 02:57:41 UTC 2017


#39980: Improve
--------------------------+-----------------
 Reporter:  azaozz        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.8
Component:  Media         |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 Follow up from #31050.

 The changes to the `image_downsize()` and `image_get_intermediate_size()`
 functions introduced in [38949] added regressions to the
 `'image_downsize'` and `'image_get_intermediate_size'` filters, running
 them for non-image attachments.

 Best option to fix this seems to be to introduce new function(s) with new
 filter(s) specifically for handling this case: adding image preview to
 non-image attachment.

 This will fix the regressions, and will make it possible for plugins to
 hook into this functionality.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39980>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list