mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Upgrade/Install: Skip any node_modules directories when removing Genericons example.html files on update.
This can significantly reduce the time required to complete the process in a development environment. Follow-up to [32386]. Props bobbingwide, afragen, desrosj, SergeyBiryukov. Fixes #52765. git-svn-id: https://develop.svn.wordpress.org/trunk@51521 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
812d110c5d
commit
d373e6e0d6
@ -1656,6 +1656,13 @@ function _upgrade_422_find_genericons_files_in_folder( $directory ) {
|
||||
}
|
||||
|
||||
$dirs = glob( $directory . '*', GLOB_ONLYDIR );
|
||||
$dirs = array_filter(
|
||||
$dirs,
|
||||
function( $dir ) {
|
||||
// Skip any node_modules directories.
|
||||
return false === strpos( $dir, 'node_modules' );
|
||||
}
|
||||
);
|
||||
|
||||
if ( $dirs ) {
|
||||
foreach ( $dirs as $dir ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user