[wp-trac] [WordPress Trac] #36345: We shouldn't use "full" as image size name in wp_calculate_image_srcset()

WordPress Trac noreply at wordpress.org
Sat Mar 26 09:15:11 UTC 2016


#36345: We shouldn't use "full" as image size name in wp_calculate_image_srcset()
----------------------------+-----------------------------
 Reporter:  jaspermdegroot  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Media           |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 In `wp_calculate_image_srcset()` we use "full" as key when we add the full
 size image to `$image_sizes`, but "full" isn't on the list of reserved
 names in the `add_image_size()` documentation so we might be removing
 someone's intermediate size there.
 Since we don't use the key name in any way we can just not use a name at
 all.

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


More information about the wp-trac mailing list