[wp-trac] [WordPress Trac] #52417: Make filename checks less strict in `wp_image_src_get_dimensions`

WordPress Trac noreply at wordpress.org
Tue Feb 2 03:06:53 UTC 2021


#52417: Make filename checks less strict in `wp_image_src_get_dimensions`
-------------------------+-----------------------
 Reporter:  joemcgill    |      Owner:  joemcgill
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  5.7
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------
 As a follow up to #51865, @ianmjones noted that
 `wp_image_src_get_dimensions` checks for the entire upload path when
 attempting to get the dimensions of full size images. For many reasons,
 this check can fail if the path has been changed. To make this less
 strict, we should be able to check to make sure the basename matches
 rather than the whole uploads path.

 [https://core.trac.wordpress.org/ticket/51865#comment:6 See the original
 comment].

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


More information about the wp-trac mailing list