From e6f29b4c0e21452765581d26b5bf7286d2caceb3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 1 Dec 2024 18:39:20 +0000 Subject: [PATCH] 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 --- wp-admin/options-general.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 5d4abae030..45d371cf6b 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 46105c3ab1..1e960be532 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.