From 2cd811f6dc3abd820a541e73eecc81028f491861 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Sep 2024 22:47:03 +0000 Subject: [PATCH] Date/Time: Use numeric input for `touch_time()` fields. This aims to make it easier to enter digits in datetime text fields on mobile devices, instead of opening the full keyboard. Follow-up to [43], [1506], [2998], [3648], [6078], [6989], [7285], [7338], [20168], [20217], [28730], [32945], [49283]. Props sabernhardt. Fixes #62109. git-svn-id: https://develop.svn.wordpress.org/trunk@59114 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index f78acff4285e6..63fc85b382623 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -850,19 +850,19 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { $day = ''; + ''; $year = ''; + ''; $hour = ''; + ''; $minute = ''; + ''; echo '
'; /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */