[wp-trac] [WordPress Trac] #55515: About the problem that the php file of the theme editor and plugin editor cannot be edited in multi-site
WordPress Trac
noreply at wordpress.org
Sat Apr 2 13:45:22 UTC 2022
#55515: About the problem that the php file of the theme editor and plugin editor
cannot be edited in multi-site
--------------------------------+-----------------------------
Reporter: ishihara takashi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 5.9.2
Severity: normal | Keywords: has-patch
Focuses: multisite |
--------------------------------+-----------------------------
Nice to meet you.
Create a ticket for the first time. If you do not follow the rules, please
let me know.
In multi-site, when editing with the theme editor and plugin editor of the
management screen, the php file is in an uneditable state.
After verification, it was possible to solve it by changing the admin_url
function on lines 552 to 562 of wp-admin / includes / file.php to the
network_admin_url function.
https://github.com/WordPress/WordPress/blob/master/wp-
admin/includes/file.php#L552-L562
The problem is that I'm making a validation request containing
wp_scrape_key for a php file, but even for multi-site the request is now
sent to /wp-admin/theme-editor.php.
Therefore, when verifying wp_scrap_key, it will be redirected to /wp-
admin/network/theme-editor.php and cannot be verified, resulting in
loopback_request_failed that cannot be edited.
This seems to be happening at all multi-sites. If anyone knows, please let
me know.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55515>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list