Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#55515 new defect (bug)

About the problem that the php file of the theme editor and plugin editor cannot be edited in multi-site

Reported by: ishihara-takashi's profile ishihara takashi Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9.2
Component: Networks and Sites Keywords: has-patch
Focuses: multisite Cc:


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.

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.

Attachments (1)

file.php (87.0 KB) - added by ishihara takashi 2 years ago.

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.