[wp-trac] [WordPress Trac] #6531: Recursively search for files in theme and plugin editors

WordPress Trac noreply at wordpress.org
Thu Nov 2 23:04:58 UTC 2017


#6531: Recursively search for files in theme and plugin editors
-------------------------------------------------+-------------------------
 Reporter:  torbens                              |       Owner:  pento
     Type:  defect (bug)                         |      Status:  closed
 Priority:  high                                 |   Milestone:  4.9
Component:  Themes                               |     Version:  2.5
 Severity:  minor                                |  Resolution:  fixed
 Keywords:  theme-editor has-patch has-unit-     |     Focuses:
  tests                                          |  administration
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"42112"]:
 {{{
 #!CommitTicketReference repository="" revision="42112"
 Theme Editor: Ensure files listed recursively can be both viewed and
 edited.

 Prevent edits to 2-level deep theme files from returning a
 `disallowed_theme_file` error when attempting to save an edit. Aligns
 logic for gathering `$allowed_files` in `theme-editor.php` for listing
 files with the validation logic in `wp_edit_theme_plugin_file()`.

 Amends [41806].
 See #6531.
 Fixes #42425.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/6531#comment:71>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list