[wp-trac] [WordPress Trac] #42569: Not able to edit files from Theme Editor option.

WordPress Trac noreply at wordpress.org
Thu Nov 16 06:05:30 UTC 2017


#42569: Not able to edit files from Theme Editor option.
----------------------------+-----------------------------
 Reporter:  dineshc         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Editor          |    Version:  4.9
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 I'm using Window 10 and localhost server, When I tried to update file from
 Editor then I got the error '''Sorry, that file cannot be edited.'''.
 Screenshot: [https://i.imgur.com/lBRhl9d.png]

 After debuging I got that
 [https://core.trac.wordpress.org/browser/tags/4.8/src/wp-
 includes/functions.php#L4258 validate_file()] function returning 2 that
 means the $file contains ':' after the first character.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42569>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list