Script Loader: Add translator comments and remove textdomains.
The inline script for `wp-date` incorrectly included a textdomain, and lacked translator comments. Props mukesh27. Fixes #45191, #45162. Built from https://develop.svn.wordpress.org/branches/5.0@43831 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0c54153886
commit
97a88cdf69
|
@ -402,16 +402,20 @@ function wp_default_packages_inline_scripts( &$scripts ) {
|
|||
'meridiem' => (object) $wp_locale->meridiem,
|
||||
'relative' => array(
|
||||
/* translators: %s: duration */
|
||||
'future' => __( '%s from now', 'default' ),
|
||||
'future' => __( '%s from now' ),
|
||||
/* translators: %s: duration */
|
||||
'past' => __( '%s ago', 'default' ),
|
||||
'past' => __( '%s ago' ),
|
||||
),
|
||||
),
|
||||
'formats' => array(
|
||||
'time' => get_option( 'time_format', __( 'g:i a', 'default' ) ),
|
||||
'date' => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
|
||||
'datetime' => __( 'F j, Y g:i a', 'default' ),
|
||||
'datetimeAbbreviated' => __( 'M j, Y g:i a', 'default' ),
|
||||
/* translators: Time format, see https://secure.php.net/date */
|
||||
'time' => get_option( 'time_format', __( 'g:i a' ) ),
|
||||
/* translators: Date format, see https://secure.php.net/date */
|
||||
'date' => get_option( 'date_format', __( 'F j, Y' ) ),
|
||||
/* translators: Date/Time format, see https://secure.php.net/date */
|
||||
'datetime' => __( 'F j, Y g:i a' ),
|
||||
/* translators: Abbreviated date/time format, see https://secure.php.net/date */
|
||||
'datetimeAbbreviated' => __( 'M j, Y g:i a' ),
|
||||
),
|
||||
'timezone' => array(
|
||||
'offset' => get_option( 'gmt_offset', 0 ),
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-beta1-43830';
|
||||
$wp_version = '5.0-beta1-43831';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue