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

WordPress Trac noreply at wordpress.org
Wed Mar 16 01:13:39 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 has-unit-tests commit  |     Focuses:  template
---------------------------------------------+------------------------

Comment (by joemcgill):

 [attachment:35480.2.patch]  uses `strlen( $image_meta['file'] ) < 4` to
 test filenames instead of `1 > strpos( $image_meta['file'], '.' )` so we
 could support filenames like `.123.jpg` if needed.

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


More information about the wp-trac mailing list