WordPress.org

Make WordPress Core

Changeset 36315


Ignore:
Timestamp:
01/15/2016 11:53:29 AM (4 years ago)
Author:
swissspidy
Message:

Build Tools: Append the timestamp to $wp_version instead of only the current date.

This ensures the Etag header added in [36312] changes for every build.

Fixes #28722.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r35720 r36315  
    109109                            version = version.replace( /-src$/, '' );
    110110
    111                             // If the version includes an SVN commit (-12345), it's not a released alpha/beta. Append a date.
    112                             version = version.replace( /-[\d]{5}$/, '-' + grunt.template.today( 'yyyymmdd' ) );
     111                            // If the version includes an SVN commit (-12345), it's not a released alpha/beta. Append a timestamp.
     112                            version = version.replace( /-[\d]{5}$/, '-' + new Date().getTime() );
    113113
    114114                            /* jshint quotmark: true */
Note: See TracChangeset for help on using the changeset viewer.