Publish box: fix leading zeros in date format

See #30716.

Built from https://develop.svn.wordpress.org/trunk@33341


git-svn-id: http://core.svn.wordpress.org/trunk@33313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ella Iseulde Van Dorpe 2015-07-21 14:55:24 +00:00
parent 262c1a7e54
commit 52f6aebdaa
3 changed files with 5 additions and 5 deletions

View File

@ -561,10 +561,10 @@ jQuery(document).ready( function($) {
'\n' + publishOn + ' <b>' +
postL10n.dateFormat
.replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr( 'data-text' ) )
.replace( '%2$s', jj )
.replace( '%2$s', parseInt( jj, 10 ) )
.replace( '%3$s', aa )
.replace( '%4$s', hh )
.replace( '%5$s', mn ) +
.replace( '%4$s', ( '00' + hh ).slice( -2 ) )
.replace( '%5$s', ( '00' + mn ).slice( -2 ) ) +
'</b> '
);
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta3-33340';
$wp_version = '4.3-beta3-33341';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.