Ticket #26751: 26751.3.patch
| File 26751.3.patch, 746 bytes (added by , 12 years ago) |
|---|
-
Gruntfile.js
79 79 version: { 80 80 options: { 81 81 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 a date string (-yyyymmdd), update it. 86 version = version.replace( /-[\d]{8}$/, '-' + grunt.template.today( 'yyyymmdd' ) ); 87 88 return "$wp_version = '" + version + "';"; 89 }); 83 90 } 84 91 }, 85 92 src: SOURCE_DIR + 'wp-includes/version.php',