[wp-trac] [WordPress Trac] #38292: Introduce exclusion for WP_Theme::scandir()

WordPress Trac noreply at wordpress.org
Sat Mar 18 03:54:01 UTC 2017


#38292: Introduce exclusion for WP_Theme::scandir()
--------------------------------+------------------------------------------
 Reporter:  lukasbesch          |       Owner:  rachelbaker
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  4.7.4
Component:  Themes              |     Version:  4.6.1
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch needs-    |     Focuses:  administration, performance
  testing                       |
--------------------------------+------------------------------------------
Changes (by rachelbaker):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40301"]:
 {{{
 #!CommitTicketReference repository="" revision="40301"
 Themes: Add filter for excluding directories from being scanned for
 template files.

 Exclude 'node_modules' directories from paths searched in
 `WP_Theme::scandir()`. Introduces the `theme_scandir_exclusions` filter to
 allow sites to exclude any other paths like `bower_components` or `vendor`
 from being searched for template files.

 Props lukasbesch, dd32, swisspidy, rachelbaker.
 Fixes #38292.
 }}}

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


More information about the wp-trac mailing list