Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#64058 new defect (bug)

wp_die() status code Upgrade/Install component updates (parent ticket: #64009)

Reported by: callumbw95's profile callumbw95 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Upgrade/Install 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/update.php 29 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 57 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 80 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 107 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 124 Error: is_wp_error( plugins_api()) 500 503 Service Unavailable
src/wp-admin/update.php 152 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 158 POST: Invalid file type passed 500 415 Unsupported Media Type
src/wp-admin/update.php 190 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 211 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 234 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 262 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 280 Error: is_wp_error( plugins_api()) 500 503 Service Unavailable
src/wp-admin/update.php 304 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update.php 310 POST: Invalid file type passed 500 415 Unsupported Media Type
src/wp-admin/update.php 342 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update-core.php 23 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update-core.php 1155 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update-core.php 1191 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update-core.php 1232 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update-core.php 1273 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/update-core.php 1302 User Permissions: does not have access 500 403 Forbidden
src/wp-admin/setup-config.php 49 Missing: file 500 404 Not Found
src/wp-admin/setup-config.php 305 REQUEST: invalid params 500 400 Bad Request
src/wp-admin/setup-config.php 310 REQUEST: invalid params 500 400 Bad Request
src/wp-admin/setup-config.php 335 DB: connection error 500 503 Service Unavailable
src/wp-admin/setup-config.php 344 REQUEST: invalid params 500 400 Bad Request

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/install.php 410 500
src/wp-admin/setup-config.php 60 409
src/wp-admin/setup-config.php 73 409

Please have a look through the suggested changes documented here, and any/all feedback is appreciated. 😃

Change History (1)

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


6 weeks ago
#1

  • Keywords has-patch added

…s related to the Upgrade / Install component

Trac ticket: #64058

Note: See TracTickets for help on using tickets.