From e6908acb8216fb9949f336e485df6d463b2ab744 Mon Sep 17 00:00:00 2001 From: Mel Choyce Date: Fri, 13 Oct 2017 18:38:03 +0000 Subject: [PATCH] Settings: Widen time/day input fields on General Settings page, and move the preview onto the next line. Props desrosj, afercia. Fixes #41603. git-svn-id: https://develop.svn.wordpress.org/trunk@41857 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/forms.css | 2 +- src/wp-admin/options-general.php | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index a059fffb36..1292db2cdb 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -1340,7 +1340,7 @@ table.form-table td .updated p { } .options-general-php input[type="text"].small-text { - max-width: 60px; + max-width: 6.25em; margin: 0; } } diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index 5be7ad99e7..1c91300c04 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -307,8 +307,9 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom date format in the following field' ) . '' . '' . '' . - '' . __( 'example:' ) . ' ' . date_i18n( get_option( 'date_format' ) ) . '' . - "\n"; + '
' . + '

' . __( 'Preview:' ) . ' ' . date_i18n( get_option( 'date_format' ) ) . '' . + "\n" . '

'; ?> @@ -343,8 +344,9 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom time format in the following field' ) . '' . '' . '' . - '' . __( 'example:' ) . ' ' . date_i18n( get_option( 'time_format' ) ) . '' . - "\n"; + '
' . + '

' . __( 'Preview:' ) . ' ' . date_i18n( get_option( 'time_format' ) ) . '' . + "\n" . '

'; echo "\t

" . __('Documentation on date and time formatting.') . "

\n"; ?>