[wp-trac] [WordPress Trac] #51865: Add filter to `wp_image_src_get_dimensions`

WordPress Trac noreply at wordpress.org
Tue Feb 2 04:25:35 UTC 2021


#51865: Add filter to `wp_image_src_get_dimensions`
-------------------------------------------------+-------------------------
 Reporter:  joemcgill                            |       Owner:  joemcgill
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.7
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  dev-note                                       |
-------------------------------------------------+-------------------------
Changes (by joemcgill):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50136" 50136]:
 {{{
 #!CommitTicketReference repository="" revision="50136"
 Media: Sanity check image meta in 'wp_image_src_get_dimensions'.

 This fixes a potential illegal offset error introduced in [50134] if the
 `$image_meta` doesn't include a `file` key.

 Props dd32.
 Fixes #51865.
 }}}

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


More information about the wp-trac mailing list