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

WordPress Trac noreply at wordpress.org
Tue Feb 2 20:52:23 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 hellofromTonya):

 @SergeyBiryukov Yes that is more clear. I had opted to use what already
 existed by following the pattern in [https://github.com/WordPress
 /wordpress-develop/blob/master/src/wp-includes/rest-api/endpoints/class-
 wp-rest-attachments-controller.php#L1205
 `WP_REST_Attachments_Controller`].

 We could standardize on `WP_RUN_CORE_TESTS`. I think that's a better
 approach.

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


More information about the wp-trac mailing list