Skip to content

Commit 2ba5158

Browse files
katinthehatsiteKateryna Kodonenko
andauthored
Studio: Limit depth on mu-plugins for selecting local tree (#2008)
* Limit depth on mu-plugins * Add comment --------- Co-authored-by: Kateryna Kodonenko <[email protected]>
1 parent 1f95d84 commit 2ba5158

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/sync/lib/tree-utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ export const shouldLimitDepth = ( relativePath: string ): boolean => {
2727
return true;
2828
}
2929

30+
// Match mu-plugins/mu-plugin or mu-plugins/mu-plugin/
31+
if ( normalizedPath.match( /^mu-plugins\/[^/]+\/?$/ ) ) {
32+
return true;
33+
}
34+
3035
return false;
3136
};
3237

0 commit comments

Comments
 (0)