Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50227


Ignore:
Timestamp:
05/22/2020 05:29:10 PM (5 years ago)
Author:
SergeyBiryukov
Comment:

Hi there, welcome to WordPress Trac!

Thanks for the ticket, we're already tracking this enhancement in #31839.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50227

    • Property Keywords needs-patch removed
    • Property Status changed from new to closed
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #50227 – Description

    initial v1  
    11In wp_load.php wp_debug_mode() error_reporting is set to E_ALL, when WP_DEBUG is set to true. E_ALL is not the best choice in all situations. I would like to have a constant, where I can set a error_reporting to a different value.
    2 
     2{{{
    33if ( WP_DEBUG ) {
    44    if ( defined( 'WP_DEBUG_ERROR_REPORTING' ) ) {
     
    88    }
    99    ...
    10 
     10}}}
    1111The constant can then be defined in wp_config.php
    1212define( 'WP_DEBUG_ERROR_REPORTING', E_ALL & ~E_NOTICE & ~E_DEPRECATED | E_STRICT );