Make WordPress Core


Ignore:
Timestamp:
07/31/2021 10:31:51 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update-core.php

    r51497 r51521  
    16571657
    16581658    $dirs = glob( $directory . '*', GLOB_ONLYDIR );
     1659    $dirs = array_filter(
     1660        $dirs,
     1661        function( $dir ) {
     1662            // Skip any node_modules directories.
     1663            return false === strpos( $dir, 'node_modules' );
     1664        }
     1665    );
    16591666
    16601667    if ( $dirs ) {
Note: See TracChangeset for help on using the changeset viewer.