[wp-trac] [WordPress Trac] #64009: wp_die() status code global updates (parent ticket)

WordPress Trac noreply at wordpress.org
Sat Sep 20 11:10:57 UTC 2025


#64009: wp_die() status code global updates (parent ticket)
--------------------------+------------------------------
 Reporter:  callumbw95    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by johnbillion):

 * version:  trunk =>


Comment:

 I'm generally in favour of these changes.

 One thing to note is that if any of the `wp_die()` calls relate to a
 private item that exists but is not accessible to the user then the status
 code must not expose its existence. For example private posts, archived
 sites on a network, or non-public post types must not return a `403`.

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


More information about the wp-trac mailing list