[wp-trac] [WordPress Trac] #41902: wp-load.php: comment for error reporting levels

WordPress Trac noreply at wordpress.org
Thu Jan 18 12:25:46 UTC 2018


#41902: wp-load.php: comment for error reporting levels
----------------------------+------------------------------
 Reporter:  sasagar         |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  0.71
 Severity:  trivial         |  Resolution:
 Keywords:                  |     Focuses:  docs
----------------------------+------------------------------

Comment (by sasagar):

 @schlessera

 Thanks for suggesting!
 Nice one isn't it!?

 I agree to add your comment, this time!

 This ticket was my first one at WordCamp Tokyo. So I'm not sure this was
 the good ticket.
 I'm so happy to get any feedback!

 Replying to [comment:2 schlessera]:
 > Thanks for the ticket and patch, @sasagar !
 >
 > If we go ahead and add an additional comment, we should also make sure
 it provides added value as well.
 >
 > How about something like this:
 >
 > {{{#!php
 > /*
 >  * Initialize error reporting to a known set of levels.
 >  *
 >  * This will be adapted in wp-includes/load.php based on the WP_DEBUG
 setting.
 >  * @see http://php.net/manual/en/errorfunc.constants.php List of known
 error levels.
 >  */
 > error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR |
 E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING |
 E_RECOVERABLE_ERROR );
 > }}}

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


More information about the wp-trac mailing list