From efde364e7cb145c1b588768616e06a9c603d5ffc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 19 Feb 2020 01:48:15 +0000 Subject: [PATCH] Build/Test Tools: Keep `wp-config.php` file in the `build` directory on rebuild, but still copy it over from `src` if it also exists there. Follow-up to [47303]. Props afercia, isabel_brison, SergeyBiryukov. Fixes #49460. git-svn-id: https://develop.svn.wordpress.org/trunk@47312 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b2562e96ac..7c6f68e840 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -27,7 +27,6 @@ module.exports = function(grunt) { 'wp-content/plugins/hello.php', 'wp-content/plugins/akismet/**', '!wp-content/themes/twenty*/node_modules/**', - '!wp-config.php', ], changedFiles = { php: [] @@ -97,12 +96,14 @@ module.exports = function(grunt) { clean: { plugins: [BUILD_DIR + 'wp-content/plugins'], themes: [BUILD_DIR + 'wp-content/themes'], - files: buildFiles.map( function( file ) { + files: buildFiles.concat( [ + '!wp-config.php', + ] ).map( function( file ) { if ( '!' === file.charAt( 0 ) ) { return '!' + BUILD_DIR + file.substring( 1 ); } return BUILD_DIR + file; - }), + } ), css: [ WORKING_DIR + 'wp-admin/css/*.min.css', WORKING_DIR + 'wp-admin/css/*-rtl*.css',