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

WordPress Trac noreply at wordpress.org
Thu Jan 18 12:06:42 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
----------------------------+------------------------------
Changes (by schlessera):

 * severity:  normal => trivial


Comment:

 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
 <?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:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list