[wp-trac] [WordPress Trac] #42425: Theme editor: Unable to edit files more than 1-level deep

WordPress Trac noreply at wordpress.org
Thu Nov 2 22:35:01 UTC 2017


#42425: Theme editor: Unable to edit files more than 1-level deep
--------------------------+-----------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.9
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 In [41806] for #6531 the logic for gathering the list of `$allowed_files`
 was modified to allow for a unlimited depth for listing out files to edit.
 However, the same change was not then likewise applied to
 `wp_edit_theme_plugin_file()` when actually validating the file path to
 edit. The result is that a user can view the code any file in a theme but
 they cannot save any edits they make. The logic in
 `wp_edit_theme_plugin_file()` needs to be updated to match the code in
 `theme-editor.php`.

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


More information about the wp-trac mailing list