[wp-trac] [WordPress Trac] #64256: Add HTTP 500 status code for WordPress critical error messages

WordPress Trac noreply at wordpress.org
Mon Nov 17 18:20:36 UTC 2025


#64256: Add HTTP 500 status code for WordPress critical error messages
-----------------------------------------+---------------------
 Reporter:  swissky                      |       Owner:  (none)
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  7.0
Component:  Bootstrap/Load               |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch changes-requested  |     Focuses:
-----------------------------------------+---------------------
Changes (by westonruter):

 * keywords:   => has-patch changes-requested
 * milestone:  Awaiting Review => 7.0


Comment:

 This makes sense to me.

 Using this sample plugin code, for example:

 {{{#!php
 <?php
 add_action( 'init', function () {
         non_existing_function();
 } );
 }}}

 I get a `200 OK` response, unexpectedly, even though PHP is dumping out:

 > '''Fatal error:''' Uncaught Error: Call to undefined function
 non_existing_function()

 @swissky Can you open a pull request to facilitate collaboration and
 automated checks?

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


More information about the wp-trac mailing list