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

WordPress Trac noreply at wordpress.org
Thu Oct 5 09:59:44 UTC 2017


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

Comment (by schlessera):

 I added another patch. It takes @WraithKenny 's `6531.10.a.diff` patch and
 adds the following changes:

 * Transient key is truncated and made unique with an MD5
 * Fixes an issue with double slashes in the generated paths
 * Renames the filter in `get_plugin_files()` from `list_files_exclusions`
 to `get_plugin_files_exclusions` to bring it in line with the theme
 specific filter
 * Makes sure single files are always producing the correct path by
 wrapping them into `plugin_basename()`
 * Adds unit test for `get_plugin_files()` when testing against a plugin
 with subfolders
 * Adds unit test for `list_files()` to return arbitrary files
 * Adds unit test for `list_files()` to support exclusions

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


More information about the wp-trac mailing list