Make WordPress Core

Changeset 47312


Ignore:
Timestamp:
02/19/2020 01:48:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r47303 r47312  
    2828            'wp-content/plugins/akismet/**',
    2929            '!wp-content/themes/twenty*/node_modules/**',
    30             '!wp-config.php',
    3130        ],
    3231        changedFiles = {
     
    9897            plugins: [BUILD_DIR + 'wp-content/plugins'],
    9998            themes: [BUILD_DIR + 'wp-content/themes'],
    100             files: buildFiles.map( function( file ) {
     99            files: buildFiles.concat( [
     100                '!wp-config.php',
     101            ] ).map( function( file ) {
    101102                if ( '!' === file.charAt( 0 ) ) {
    102103                    return '!' + BUILD_DIR + file.substring( 1 );
    103104                }
    104105                return BUILD_DIR + file;
    105             }),
     106            } ),
    106107            css: [
    107108                WORKING_DIR + 'wp-admin/css/*.min.css',
Note: See TracChangeset for help on using the changeset viewer.