[wp-trac] [WordPress Trac] #56382: Allow filtering excluded directories during theme export via `wp_is_theme_directory_ignored`

WordPress Trac noreply at wordpress.org
Mon Aug 15 20:08:04 UTC 2022


#56382: Allow filtering excluded directories during theme export via
`wp_is_theme_directory_ignored`
-------------------------+-----------------------------
 Reporter:  Mat Lipe     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  6.0
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The `wp_is_theme_directory_ignored` function excludes the majority of
 common vendor or VCS files by default during theme export via the Site
 Editor.

 There are themes which may need to exclude additional directories on a
 case by case basis. A few examples include:
 1. Source files for JS tools like Webpack.
 2. Unit test files.
 3. .yarn files for Yarn projects with PNP support.

 By offering a filter to theme developers we allow developers to filter as
 needed without needing to maintain a list of exclusions which covers all
 cases.

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


More information about the wp-trac mailing list