Skip to content

Commit b1fd1db

Browse files
Add ISO date standard YYYY-MM-DD format to general settings.
props mattheweppelsheimer. fixes #28447. git-svn-id: https://develop.svn.wordpress.org/trunk@28820 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ddaf465 commit b1fd1db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-admin/options-general.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,11 @@ function options_general_add_js() {
232232
* Filter the default date formats.
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;
241242

0 commit comments

Comments
 (0)