Opened 23 months ago
Closed 23 months ago
#61547 closed defect (bug) (duplicate)
The theme editor does not work
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 6.5.5 |
| Component: | Administration | Keywords: | |
| Focuses: | administration, php-compatibility | Cc: |
Description
After the latest WP Core update, the theme editor is not working, if I try to edit any file it shows the following error: “Sorry, that file cannot be edited.”
We do comment “$file = wp_normalize_path( $file );” in the wp-includes/functions.php file and it works again with the same configuration (active plugins, active theme, etc.).
After calling the wp_normalize_path function, the $file no longer exists in $allowed_files. This in_array( $file, $allowed_files, true ) return false. I think it is due to the absolute path in windows with backslashes.
It will probably only happen on a Windows server.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Duplicate of #61488.