[wp-trac] [WordPress Trac] #49889: Image.php - Wrap Error Suppressors in WP_DEBUG Conditionals

WordPress Trac noreply at wordpress.org
Sun Apr 12 23:59:58 UTC 2020


#49889: Image.php - Wrap Error Suppressors in WP_DEBUG Conditionals
------------------------------------+-------------------------------
 Reporter:  Howdy_McGee             |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  5.5
Component:  Media                   |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  coding-standards
------------------------------------+-------------------------------

Comment (by Howdy_McGee):

 This patch introduces a new function `wp_getimagesize( $filename,
 &$imageinfo );` and functions exactly like PHP `getimagesize()`. The 15
 instances of `getimagesize()` across 8 files has also been switched over
 to the new `wp_getimagesize()` function. Additionally, the instance of
 `iptcparse()` and `exif_read_data()` were left with the WP_DEBUG
 conditional check. Let me know if we want to split this patch down into a
 per-file patch.

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


More information about the wp-trac mailing list