From c15b2a09084060dce665f54efd75792dd28fc58c Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 6 Nov 2017 20:28:48 +0000 Subject: [PATCH] Customize: Fall back to ISO date format for date/time control inputs if year, month, or day are missing from the `date_format` option. Amends [42111]. Props dlh, westonruter. Fixes #42394. Built from https://develop.svn.wordpress.org/trunk@42117 git-svn-id: http://core.svn.wordpress.org/trunk@41946 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../class-wp-customize-date-time-control.php | 15 +++++++-------- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/wp-includes/customize/class-wp-customize-date-time-control.php b/wp-includes/customize/class-wp-customize-date-time-control.php index c163ba1408..fdaa6837dc 100644 --- a/wp-includes/customize/class-wp-customize-date-time-control.php +++ b/wp-includes/customize/class-wp-customize-date-time-control.php @@ -100,14 +100,13 @@ class WP_Customize_Date_Time_Control extends WP_Customize_Control { $timezone_info = $this->get_timezone_info(); $date_format = get_option( 'date_format' ); - foreach ( array( 'Y', 'y', 'o' ) as $year_token ) { - $date_format = preg_replace( '/(? diff --git a/wp-includes/version.php b/wp-includes/version.php index 763e9a9635..20d690aae4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-RC1-42116'; +$wp_version = '4.9-RC1-42117'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.