Make WordPress Core

Changeset 44162 for trunk


Ignore:
Timestamp:
12/14/2018 04:40:11 AM (6 years ago)
Author:
desrosj
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/script-loader.php

    r44160 r44162  
    409409                    ),
    410410                    'formats'  => array(
    411                         'time'     => get_option( 'time_format', __( 'g:i a', 'default' ) ),
    412                         'date'     => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
    413                         'datetime' => __( 'F j, Y g:i a', 'default' ),
     411                        'time'                => get_option( 'time_format', __( 'g:i a', 'default' ) ),
     412                        'date'                => get_option( 'date_format', __( 'F j, Y', 'default' ) ),
     413                        'datetime'            => __( 'F j, Y g:i a', 'default' ),
     414                        'datetimeAbbreviated' => __( 'M j, Y g:i a', 'default' ),
    414415                    ),
    415416                    'timezone' => array(
Note: See TracChangeset for help on using the changeset viewer.