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

WordPress Trac noreply at wordpress.org
Tue Feb 2 21:34:54 UTC 2021


#49889: Image.php - Wrap Error Suppressors in WP_DEBUG Conditionals
--------------------------------------+-------------------------------
 Reporter:  Howdy_McGee               |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.7
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by antpb):

 In [changeset:"50170" 50170]:
 {{{
 #!CommitTicketReference repository="" revision="50170"
 Media: Consistency in logic to pass `wp_getimagesize()` tests.

 Previously, we used `DIR_TESTDATA` to determine if a test should skip a
 newly silenced error in `wp_getimagesize()`.

 We are now using `WP_RUN_CORE_TESTS` instead for consistency.

 Props hellofromTonya, SergeyBiryukov.
 See #49889.
 }}}

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


More information about the wp-trac mailing list