Commit 6511cc0
committed
Themes: Allow files in a block theme's 'patterns' directory to be filterable.
Since [59872] all PHP files in the 'patterns' directory or subdirectories are auto registered. Adding a filter prior to autoregistration allows theme developers to modify the list of files before the auto registration.
Props webmandesign, joemcgill, jorbin, poena.
Fixes #63212.
git-svn-id: https://develop.svn.wordpress.org/trunk@60142 602fd350-edb4-49c9-b593-d223f7449a821 parent bb55de7 commit 6511cc0
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1860 | 1860 | | |
1861 | 1861 | | |
1862 | 1862 | | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1863 | 1873 | | |
1864 | 1874 | | |
1865 | 1875 | | |
| |||
0 commit comments