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. git-svn-id: https://develop.svn.wordpress.org/trunk@36315 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
57a589fef5
commit
8e8cdb2ef4
@ -108,8 +108,8 @@ module.exports = function(grunt) {
|
||||
return src.replace( /^\$wp_version = '(.+?)';/m, function( str, version ) {
|
||||
version = version.replace( /-src$/, '' );
|
||||
|
||||
// If the version includes an SVN commit (-12345), it's not a released alpha/beta. Append a date.
|
||||
version = version.replace( /-[\d]{5}$/, '-' + grunt.template.today( 'yyyymmdd' ) );
|
||||
// If the version includes an SVN commit (-12345), it's not a released alpha/beta. Append a timestamp.
|
||||
version = version.replace( /-[\d]{5}$/, '-' + new Date().getTime() );
|
||||
|
||||
/* jshint quotmark: true */
|
||||
return "$wp_version = '" + version + "';";
|
||||
|
Loading…
Reference in New Issue
Block a user