Make WordPress Core

Opened 2 months ago

Last modified 3 days ago

#64023 new defect (bug)

wp_die() status code Options component updates (parent ticket: #64009)

Reported by: callumbw95's profile callumbw95 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords: has-patch
Focuses: Cc:

Description

If you have come here directly, please refer back to the parent ticket here: #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 13 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/options-privacy.php 13 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/options-reading.php 13 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/options-general.php 16 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/options-writing.php 13 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/options-discussion.php 12 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/options-media.php 13 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/options.php 249 REQUEST: invalid params 500 400 Bad Request
src/wp-admin/options.php 260 User Permissions: does not have access 500 403 Forbidden
src/wp-includes/option.php 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 50 403
src/wp-admin/options.php 83 403

Change History (2)

This ticket was mentioned in PR #9994 on WordPress/wordpress-develop by @callumbw95.


2 months ago
#1

  • Keywords has-patch added

…s related to the media component

Trac ticket: 64023

#2 @desrosj
3 days ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.