[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 05:52:36 UTC 2019


#46047: Rename shutdown handler constant to allow it to be used for disabling it
altogether
----------------------------+-----------------------
 Reporter:  schlessera      |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  5.1
Component:  Bootstrap/Load  |    Version:  trunk
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------
 As we cannot unregister the shutdown handler we register for the WSOD
 protection, we're currently defining a constant `WP_EXECUTION_SUCCEEDED`
 to short-circuit its execution once WordPress has fully loaded.

 This constant can actually be used to disable the shutdown handler
 altogether. Therefore, I suggest renaming it to
 `WP_DISABLE_SHUTDOWN_HANDLER` so that its usage is more obvious.

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


More information about the wp-trac mailing list