Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#61509 closed defect (bug) (duplicate)

Tools - Theme file editor

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

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 3 months ago.
Capture.PNG (47.3 KB) - added by cmartel 3 months ago.
Capture1.PNG (17.1 KB) - added by cmartel 3 months ago.

Download all attachments as: .zip

Change History (5)

@cmartel
3 months ago

@cmartel
3 months ago

@cmartel
3 months ago

#1 @siliconforks
3 months ago

  • Resolution set to duplicate
  • Status changed from new to closed

This appears to be a duplicate of #61488.

#2 @jorbin
3 months ago

  • Milestone Awaiting Review deleted
  • Version 6.5.5 deleted

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.