[wp-trac] [WordPress Trac] #56252: Allow error_reporting level to be configurable for WP_DEBUG

WordPress Trac noreply at wordpress.org
Thu Feb 13 17:10:48 UTC 2025


#56252: Allow error_reporting level to be configurable for WP_DEBUG
-----------------------------------+--------------------------
 Reporter:  luistar15              |       Owner:  pbearne
     Type:  enhancement            |      Status:  assigned
 Priority:  normal                 |   Milestone:  6.8
Component:  Bootstrap/Load         |     Version:  6.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  performance
-----------------------------------+--------------------------

Comment (by jorbin):

 My first reaction: "I touched `wp_debug_mode`?"

 My second thought: I think this is a duplicate of #31839. As there is a
 bit more discussion on that ticket, I think we should close this one and
 focus on that one. I'll throw a bit more there, but in general I can get
 behind making this configurable. It's going to require some documentation
 though since `error_reporting` will fatal if you pass in a non-integar. I
 don't think we need to go so far as to put in guard rails if you pass in a
 something besides an int, but I do think some documentation to help folks
 who cause a fatal is necessary.

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


More information about the wp-trac mailing list