[wp-trac] [WordPress Trac] #38292: Introduce exclusion for WP_Theme::scandir()
WordPress Trac
noreply at wordpress.org
Fri Mar 24 18:43:15 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 fixed- | Focuses: administration, performance
major |
--------------------------------+------------------------------------------
Changes (by swissspidy):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"40326"]:
{{{
#!CommitTicketReference repository="" revision="40326"
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.
Merges [40301] to the 4.7 branch.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38292#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list