Scripts: Add a missing date format to the wp-date
config.
`wp-date` recently added the `datetimeAbbreviated` format, but the config wasn't sending it on page load. Props pento. Merges [43818] to trunk. Fixes #45158. git-svn-id: https://develop.svn.wordpress.org/trunk@44162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6993b164b5
commit
a8f4e58e75
@ -408,9 +408,10 @@ function wp_default_packages_inline_scripts( &$scripts ) {
|
||||
),
|
||||
),
|
||||
'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' ),
|
||||
'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' ),
|
||||
),
|
||||
'timezone' => array(
|
||||
'offset' => get_option( 'gmt_offset', 0 ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user