Make WordPress Core

Changeset 28820


Ignore:
Timestamp:
06/24/2014 09:49:37 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Add ISO date standard YYYY-MM-DD format to general settings.

props mattheweppelsheimer.
fixes #28447.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r28591 r28820  
    233233    *
    234234    * @since 2.7.0
     235    * @since 4.0.0 Added ISO date standard YYYY-MM-DD format.
    235236    *
    236237    * @param array $default_date_formats Array of default date formats.
    237238    */
    238     $date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y/m/d', 'm/d/Y', 'd/m/Y' ) ) );
     239    $date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y/m/d', 'm/d/Y', 'd/m/Y', 'Y-m-d' ) ) );
    239240
    240241    $custom = true;
Note: See TracChangeset for help on using the changeset viewer.