[wp-trac] [WordPress Trac] #64256: Add HTTP 500 status code for WordPress critical error messages
WordPress Trac
noreply at wordpress.org
Thu Jan 29 10:59:39 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 |
-------------------------------------------------+-------------------------
Changes (by ozgursar):
* keywords: has-patch changes-requested => has-patch changes-requested
has-test-info has-screenshots
Comment:
== Patch Testing Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/10579/
=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Opera
- OS: macOS
- Theme: Twenty Twenty-One 2.7
- MU Plugins: None activated
- Plugins:
* Code Snippets 3.9.4
* Test Reports 1.2.1
=== Steps 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 using Chrome Dev Tools
3. Confirm 200 OK Status code
4. Apply patch
5. Refresh the homepage and check document headers again
6. ❌ Patch is failing. It's still displaying the 200 OK status code.
=== Expected result
- We are expecting to see HTTP 500 status code when an internal server
error occurs
=== Screenshots/Screencast with results
Before:
[[Image(https://i.imgur.com/80vz0Yw.png)]]
After:
[[Image(https://i.imgur.com/6Spv3JY.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64256#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list