mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Add ISO date standard YYYY-MM-DD format to general settings.
props mattheweppelsheimer. fixes #28447. Built from https://develop.svn.wordpress.org/trunk@28820 git-svn-id: http://core.svn.wordpress.org/trunk@28625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
856e5ef55e
commit
124f1bc2f5
@ -232,10 +232,11 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
||||
* Filter the default date formats.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @since 4.0.0 Added ISO date standard YYYY-MM-DD format.
|
||||
*
|
||||
* @param array $default_date_formats Array of default date formats.
|
||||
*/
|
||||
$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y/m/d', 'm/d/Y', 'd/m/Y' ) ) );
|
||||
$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y/m/d', 'm/d/Y', 'd/m/Y', 'Y-m-d' ) ) );
|
||||
|
||||
$custom = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user