[wp-trac] [WordPress Trac] #64256: Add HTTP 500 status code for WordPress critical error messages
WordPress Trac
noreply at wordpress.org
Tue Feb 3 14:40:26 UTC 2026
#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 has- | Focuses:
test-info has-screenshots |
-------------------------------------------------+-------------------------
Comment (by jsmansart):
== Reproduction Report
=== Description
This report does not validates whether the issue can be reproduced.
=== Environment
- WordPress: 7.0-alpha-20260203.151637
- PHP: 8.2.30
- Server: Apache/2.4.66 (Unix) PHP/8.2.30
- Database: mysqli (Server: 10.6.24-MariaDB / Client: mysqlnd 8.2.30)
- Browser: Firefox 148.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.1
=== Actual Results
1. ❌ Error condition doesn't occurs (not reproduced).
=== Setps taken
1. Add the following code via Code Snippets or functions.php to "trigger"
a fatal error
{{{
add_action( 'init', function () {
non_existing_function();
} );
}}}
2. View frontend and check document headers with inspector
3. ❌ Status code is already 500
=== Expected Results
1. ✅ We should get a status code 200.
=== Actual Results
1. ❌ We get a status code 500.
=== Screeshots
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64256#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list