Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#61509 closed defect (bug) (duplicate)

Tools - Theme file editor

Reported by: cmartel Owned by:
Priority: normal Milestone:
Component: Administration Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Hello, in versions 6.5.5 and 6.4.5 of WordPress the file editor menu returns the error: "Sorry, that file cannot be edited".

I tested both basic versions of WordPress.

The function validate_file( $file, $allowed_files = array() ) of the wp_content/functions.php file returns the value 3 instead of 0 for a value of the parameter $file = "C:\wamp64\www\wptestold/wp-content /themes/twentytwentytwo/style.css"

Attachments (3)

Capture3.PNG (2.4 KB ) - added by cmartel 2 years ago.
Capture.PNG (47.3 KB ) - added by cmartel 2 years ago.
Capture1.PNG (17.1 KB ) - added by cmartel 2 years ago.

Download all attachments as: .zip

Change History (5)

@cmartel
2 years ago

@cmartel
2 years ago

@cmartel
2 years ago

#1 @siliconforks
2 years ago

  • Resolutionduplicate
  • Status newclosed

This appears to be a duplicate of #61488.

#2 @jorbin
2 years ago

  • Milestone Awaiting Review
  • Version 6.5.5

Hi @cmartel, welcome to track.

As mentioned before, this is already being tracked and a fix has been committed to trunk. As a workaround, you can use a code editor that you install on your machine such as notepad++ or VS Code

Note: See TracTickets for help on using tickets.