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

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


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

Comment (by kraftbj):

 Are there any particular downsides to setting `WP_RUN_CORE_TESTS` when
 running plugin unit tests? The error suppression for `getimagesize` was
 expected for one of our Jetpack tests, so looking to see if setting the
 constant is good enough or if we need to rewrite some tests :)

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


More information about the wp-trac mailing list