Commit d799ce8975 for wordpress.org
commit d799ce897534e117f9db446216203866e8c72ed0
Author: Weston Ruter <weston@xwp.co>
Date: Wed Jan 28 17:52:40 2026 +0000
Build/Test Tools: Optimize `uglify:core` and `copy:files` glob patterns in Grunt tasks.
The `uglify:core` and `copy:files` tasks utilized broad negative glob patterns (`!**/*.min.js` and `!**/*.map`) to exclude files from processing. The glob expansion scans the entire `src/` directory tree, including `wp-content`. For environments where `wp-content` contains deep directory structures (such as plugins with `node_modules` dependencies) this traversal becomes prohibitively slow, causing the build process to hang.
This change scopes the exclusion patterns to specific directories (e.g. `wp-admin`, `wp-includes`, default themes, and Akismet), limiting the file scan to relevant core paths and preventing unnecessary recursion into `wp-content`.
In one dev environment, this reduces `npm run build:dev` from 43s to 9s, and `npm run build` from 51s to 13s.
Developed in https://github.com/WordPress/wordpress-develop/pull/10809
Follow up to [61475].
Props westonruter, jonsurrell.
See #63606.
Fixes #64563.
Built from https://develop.svn.wordpress.org/trunk@61545
git-svn-id: http://core.svn.wordpress.org/trunk@60856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/version.php b/wp-includes/version.php
index e252d112cf..0f1fd5fc25 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61544';
+$wp_version = '7.0-alpha-61545';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.