Append the date to $wp_version in the build output, for nightly packages.
props azaozz. fixes #26751. git-svn-id: https://develop.svn.wordpress.org/trunk@28611 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e317e5454a
commit
6e269a7120
@ -79,7 +79,14 @@ module.exports = function(grunt) {
|
||||
version: {
|
||||
options: {
|
||||
processContent: function( src ) {
|
||||
return src.replace( /^(\$wp_version.+?)-src';/m, '$1\';' );
|
||||
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' ) );
|
||||
|
||||
return "$wp_version = '" + version + "';";
|
||||
});
|
||||
}
|
||||
},
|
||||
src: SOURCE_DIR + 'wp-includes/version.php',
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.0-alpha-src';
|
||||
$wp_version = '4.0-alpha-28611-src';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user