WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30180, comment 67


Ignore:
Timestamp:
09/19/2019 05:01:31 PM (10 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30180, comment 67

    initial v1  
    1414
    1515To make it possible to limit it to a particular sub-size (which is not a good idea, but may make sense in some contexts), a `$size` array with max `width` and `height` might be useful, but needs more thinking/testing.
     16
     17Also, introducing a filter `wp_get_attachment_image_attr` when there is `wp_get_attachment_image_attributes` in `wp_get_attachment_image()` is really misleading. Thinking that naming in the patch needs review.