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

WordPress Trac noreply at wordpress.org
Mon Sep 22 15:51:34 UTC 2025


#64023: wp_die() status code Options component updates (parent ticket: #64009)
--------------------------------+-----------------------------
 Reporter:  callumbw95          |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 If you have come here directly, please refer back to the parent ticket
 here: [https://core.trac.wordpress.org/ticket/64009 #64009]

 This ticket is regarding the `wp_die()` function calls within the Media
 component and will cover the following locations. Please note links were
 correct at the time of testing and writing this up, but line numbers may
 have changed slightly:

 || **Filepath** || **Line Number** || **Context* || **Status Code** ||
 **New Code** || **Code Meaning** ||
 || src/wp-admin/options-permalink.php || [https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-admin/options-permalink.php#L13 13]
 || User Permissions: does not have access || 500 || 403 || Forbidden ||
 || src/wp-admin/options-privacy.php || [https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-admin/options-privacy.php#L13 13] ||
 User Permissions: does not have access || 500 || 403 || Forbidden ||
 || src/wp-admin/options-reading.php || [https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-admin/options-reading.php#L13 13] ||
 User Permissions: does not have access || 500 || 403 || Forbidden ||
 || src/wp-admin/options-general.php || [https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-admin/options-general.php#L16 16] ||
 User Permissions: does not have access || 500 || 403 || Forbidden ||
 || src/wp-admin/options-writing.php || [https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-admin/options-writing.php#L13 13] ||
 User Permissions: does not have access || 500 || 403 || Forbidden ||
 || src/wp-admin/options-discussion.php || [https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-admin/options-discussion.php#L12 12]
 || User Permissions: does not have access || 500 || 403 || Forbidden ||
 || src/wp-admin/options-media.php || [https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-admin/options-media.php#L13 13] ||
 User Permissions: does not have access || 500 || 403 || Forbidden ||
 || src/wp-admin/options.php || [https://github.com/WordPress/wordpress-
 develop/blob/trunk/src/wp-admin/options.php#L249 249] || REQUEST: invalid
 params || 500 || 400 || Bad Request ||
 || src/wp-admin/options.php || [https://github.com/WordPress/wordpress-
 develop/blob/trunk/src/wp-admin/options.php#L260 260] || User Permissions:
 does not have access || 500 || 403 || Forbidden ||
 || src/wp-includes/option.php || [https://github.com/WordPress/wordpress-
 develop/blob/trunk/src/wp-includes/option.php#L568 568] || Error: invalid
 params || 500 || 400 || Bad Request ||

 I have also put in a PR with these changes so it’s easier to see where in
 the code each lies, and the surrounding code.

 There are however the following function calls I have not touched as I
 felt they were already valid with their current status code:

 || **Filepath** || **Line Number** || **Status Code** ||
 || src/wp-admin/options.php || [https://github.com/WordPress/wordpress-
 develop/blob/trunk/src/wp-admin/options.php#L50 50] || 403 ||
 || src/wp-admin/options.php || [https://github.com/WordPress/wordpress-
 develop/blob/trunk/src/wp-admin/options.php#L83 83] || 403 ||

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64023>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list