mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01: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. Built from https://develop.svn.wordpress.org/trunk@51521 git-svn-id: http://core.svn.wordpress.org/trunk@51132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4889679ca5
commit
aa0ed0fcdd
@ -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 ) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51520';
|
||||
$wp_version = '5.9-alpha-51521';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user