[wp-trac] [WordPress Trac] #35480: Some notice and warning in wp_calculate_image_srcset() function media.php

WordPress Trac noreply at wordpress.org
Mon Jan 18 04:54:28 UTC 2016


#35480: Some notice and warning in wp_calculate_image_srcset() function media.php
----------------------------------------+------------------------
 Reporter:  overclokk                   |       Owner:  joemcgill
     Type:  defect (bug)                |      Status:  accepted
 Priority:  normal                      |   Milestone:  4.5
Component:  Media                       |     Version:  4.4.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  template
----------------------------------------+------------------------

Comment (by dd32):

 Under what scenarios would a non-array item be present in the array?

 It seems that this could be the wrong fix, and instead it should be
 checked earlier on in the function somewhere.

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


More information about the wp-trac mailing list