[wp-trac] [WordPress Trac] #63836: Use more appropriate HTTP status codes for wp_die() calls in wp-admin/post.php

WordPress Trac noreply at wordpress.org
Sat Sep 6 06:48:11 UTC 2025


#63836: Use more appropriate HTTP status codes for wp_die() calls in wp-
admin/post.php
------------------------------+-------------------------
 Reporter:  kkmuffme          |       Owner:  callumbw95
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.9
Component:  General           |     Version:
 Severity:  minor             |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-------------------------
Changes (by westonruter):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60713" 60713]:
 {{{
 #!CommitTicketReference repository="" revision="60713"
 Posts, Post Types: Use relevant HTTP status codes for `wp_die()` calls in
 `wp-admin/post.php`.

 The status code is now explicitly set in each `wp_die()` call so that the
 default 500 status code is not sent unless it is the most appropriate.

 Props callumbw95, kkmuffme, mindctrl, westonruter.
 Fixes #63836.
 }}}

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


More information about the wp-trac mailing list