Make WordPress Core

Changeset 47303


Ignore:
Timestamp:
02/18/2020 09:25:25 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Keep wp-config.php file in the build directory on rebuild.

Props isabel_brison.
Fixes #49460.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r47122 r47303  
    2727                        'wp-content/plugins/hello.php',
    2828                        'wp-content/plugins/akismet/**',
    29                         '!wp-content/themes/twenty*/node_modules/**'
     29                        '!wp-content/themes/twenty*/node_modules/**',
     30                        '!wp-config.php',
    3031                ],
    3132                changedFiles = {
     
    9899                        themes: [BUILD_DIR + 'wp-content/themes'],
    99100                        files: buildFiles.map( function( file ) {
     101                                if ( '!' === file.charAt( 0 ) ) {
     102                                        return '!' + BUILD_DIR + file.substring( 1 );
     103                                }
    100104                                return BUILD_DIR + file;
    101105                        }),
Note: See TracChangeset for help on using the changeset viewer.