From a8f4e58e7594e1439dace2d63b940a695547ee3b Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 14 Dec 2018 04:40:11 +0000 Subject: [PATCH] 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 --- src/wp-includes/script-loader.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index c09f5848e8..7d1bb78fe2 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -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 ),