mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 00:58:46 +01:00
Date/Time: Add d.m.Y
to date format presets on General Settings screen.
This gives users another option when selecting how dates are displayed on their site. This change is relevant for better localization, providing more date format choices for users in regions where this format is common. The `array_unique()` call ensures that if this format was already added by a plugin or theme, it won't be duplicated. Follow-up to [9131], [22299], [28820], [28848]. Props Daedalon, pbearne, fierevere, im3dabasia1, SergeyBiryukov. Fixes #55685. Built from https://develop.svn.wordpress.org/trunk@59475 git-svn-id: http://core.svn.wordpress.org/trunk@58861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0749661c97
commit
e6f29b4c0e
@ -476,11 +476,12 @@ if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
|
||||
* Filters the default date formats.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @since 4.0.0 Added ISO date standard YYYY-MM-DD format.
|
||||
* @since 4.0.0 Replaced the `Y/m/d` format with `Y-m-d` (ISO date standard YYYY-MM-DD).
|
||||
* @since 6.8.0 Added the `d.m.Y` format.
|
||||
*
|
||||
* @param string[] $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', 'd.m.Y' ) ) );
|
||||
|
||||
$custom = true;
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59474';
|
||||
$wp_version = '6.8-alpha-59475';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user