Make WordPress Core

Changeset 28611


Ignore:
Timestamp:
05/29/2014 04:32:41 AM (11 years ago)
Author:
nacin
Message:

Append the date to $wp_version in the build output, for nightly packages.

props azaozz.
fixes #26751.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r28222 r28611  
    8080                options: {
    8181                    processContent: function( src ) {
    82                         return src.replace( /^(\$wp_version.+?)-src';/m, '$1\';' );
     82                        return src.replace( /^\$wp_version = '(.+?)';/m, function( str, version ) {
     83                            version = version.replace( /-src$/, '' );
     84
     85                            // If the version includes an SVN commit (-12345), it's not a released alpha/beta. Append a date.
     86                            version = version.replace( /-[\d]{5}$/, '-' + grunt.template.today( 'yyyymmdd' ) );
     87
     88                            return "$wp_version = '" + version + "';";
     89                        });
    8390                    }
    8491                },
  • trunk/src/wp-includes/version.php

    r28606 r28611  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '4.0-alpha-src';
     7$wp_version = '4.0-alpha-28611-src';
    88
    99/**
Note: See TracChangeset for help on using the changeset viewer.