[wp-trac] [WordPress Trac] #46047: Rename shutdown handler constant to allow it to be used for disabling it altogether

WordPress Trac noreply at wordpress.org
Mon Jan 21 19:38:02 UTC 2019


#46047: Rename shutdown handler constant to allow it to be used for disabling it
altogether
----------------------------------+-----------------------
 Reporter:  schlessera            |       Owner:  flixos90
     Type:  enhancement           |      Status:  assigned
 Priority:  normal                |   Milestone:  5.1
Component:  Bootstrap/Load        |     Version:  trunk
 Severity:  normal                |  Resolution:
 Keywords:  has-patch servehappy  |     Focuses:
----------------------------------+-----------------------
Changes (by flixos90):

 * owner:  (none) => flixos90
 * status:  new => assigned


Comment:

 [attachment:"46047.2.diff"] renames the `WP_Shutdown_Handler` class to
 `WP_Fatal_Error_Handler` and adjusts the drop-in name to `fatal-error-
 handler.php`. It furthermore introduces a constant
 `WP_DISABLE_FATAL_ERROR_HANDLER` to disable the handler entirely, and a
 filter `wp_fatal_error_handler_enabled` to dynamically tweak that value.

 These changes were discussed and agreed on in Slack today:
 https://wordpress.slack.com/archives/C60K3MP2Q/p1548090570493300

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


More information about the wp-trac mailing list