WordPress.org

Make WordPress Core

Changeset 41857


Ignore:
Timestamp:
10/13/2017 06:38:03 PM (3 years ago)
Author:
melchoyce
Message:

Settings: Widen time/day input fields on General Settings page, and move the preview onto the next line.

Props desrosj, afercia.
Fixes #41603.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/forms.css

    r41854 r41857  
    13411341
    13421342    .options-general-php input[type="text"].small-text {
    1343         max-width: 60px;
     1343        max-width: 6.25em;
    13441344        margin: 0;
    13451345    }
  • trunk/src/wp-admin/options-general.php

    r41289 r41857  
    308308        '<label for="date_format_custom" class="screen-reader-text">' . __( 'Custom date format:' ) . '</label>' .
    309309        '<input type="text" name="date_format_custom" id="date_format_custom" value="' . esc_attr( get_option( 'date_format' ) ) . '" class="small-text" />' .
    310         '<span class="screen-reader-text">' . __( 'example:' ) . ' </span> <span class="example">' . date_i18n( get_option( 'date_format' ) ) . '</span>' .
    311         "<span class='spinner'></span>\n";
     310        '<br />' .
     311        '<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'date_format' ) ) . '</span>' .
     312        "<span class='spinner'></span>\n" . '</p>';
    312313?>
    313314    </fieldset>
     
    344345        '<label for="time_format_custom" class="screen-reader-text">' . __( 'Custom time format:' ) . '</label>' .
    345346        '<input type="text" name="time_format_custom" id="time_format_custom" value="' . esc_attr( get_option( 'time_format' ) ) . '" class="small-text" />' .
    346         '<span class="screen-reader-text">' . __( 'example:' ) . ' </span> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
    347         "<span class='spinner'></span>\n";
     347        '<br />' .
     348        '<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
     349        "<span class='spinner'></span>\n" . '</p>';
    348350
    349351    echo "\t<p class='date-time-doc'>" . __('<a href="https://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.') . "</p>\n";
Note: See TracChangeset for help on using the changeset viewer.