[wp-trac] [WordPress Trac] #64057: wp_die() status code Themes component updates (parent ticket: #64009)
WordPress Trac
noreply at wordpress.org
Tue Sep 30 16:33:33 UTC 2025
#64057: wp_die() status code Themes component updates (parent ticket: #64009)
--------------------------+-----------------------------
Reporter: callumbw95 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | 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/themes.php || [https://github.com/WordPress
/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L86 86] || User
Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/themes.php || [https://github.com/WordPress
/wordpress-develop/blob/6.8/src/wp-admin/themes.php#L106 106] ||
User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/theme-editor.php || [https://github.com/WordPress
/wordpress-develop/blob/6.8/src/wp-admin/theme-editor.php#L18 18] ||
User Permissions: does not have access || 500 || 403 || Forbidden ||
|| src/wp-admin/theme-editor.php || [https://github.com/WordPress
/wordpress-develop/blob/6.8/src/wp-admin/theme-editor.php#L73 73] ||
Missing: theme || 500 || 404 || Not Found ||
|| src/wp-admin/theme-install.php || [https://github.com/WordPress
/wordpress-develop/blob/6.8/src/wp-admin/theme-install.php#L16 16] ||
User Permissions: does not have access || 500 || 403 || Forbidden ||
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/includes/theme-install.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
admin/includes/theme-install.php#L261 261] || 500 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-admin/themes.php#L13 13] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-admin/themes.php#L26 26] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-admin/themes.php#L41 41] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-admin/themes.php#L51 51] || 500 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-admin/themes.php#L61 61] || 403 ||
|| src/wp-admin/themes.php || [https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-admin/themes.php#L69 69] || 403 ||
|| src/wp-content/themes/twentyfifteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentyfifteen/inc/back-compat.php#L53 53] || 500 ||
|| src/wp-content/themes/twentyfifteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentyfifteen/inc/back-compat.php#L74 74] || 500 ||
|| src/wp-content/themes/twentyfourteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentyfourteen/inc/back-compat.php#L53 53] || 500 ||
|| src/wp-content/themes/twentyfourteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentyfourteen/inc/back-compat.php#L74 74] || 500 ||
|| src/wp-content/themes/twentynineteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentynineteen/inc/back-compat.php#L57 57] || 500 ||
|| src/wp-content/themes/twentynineteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentynineteen/inc/back-compat.php#L80 80] || 500 ||
|| src/wp-content/themes/twentyseventeen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentyseventeen/inc/back-compat.php#L57 57] || 500 ||
|| src/wp-content/themes/twentyseventeen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentyseventeen/inc/back-compat.php#L80 80] || 500 ||
|| src/wp-content/themes/twentysixteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentysixteen/inc/back-compat.php#L59 59] || 500 ||
|| src/wp-content/themes/twentysixteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentysixteen/inc/back-compat.php#L82 82] || 500 ||
|| src/wp-content/themes/twentythirteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentythirteen/inc/back-compat.php#L53 53] || 500 ||
|| src/wp-content/themes/twentythirteen/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentythirteen/inc/back-compat.php#L74 74] || 500 ||
|| src/wp-content/themes/twentytwentyone/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentytwentyone/inc/back-compat.php#L58 58] || 500 ||
|| src/wp-content/themes/twentytwentyone/inc/back-compat.php ||
[https://github.com/WordPress/wordpress-develop/blob/6.8/src/wp-
content/themes/twentytwentyone/inc/back-compat.php#L83 83] || 500 ||
|| src/wp-includes/theme.php || [https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-includes/theme.php#L765 765] || 500 ||
Please have a look through the suggested changes documented here, and
any/all feedback is appreciated. 😃
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64057>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list