WordPress.org

Make WordPress Core

Ticket #41603: 41603.diff

File 41603.diff, 2.4 KB (added by desrosj, 3 years ago)
  • src/wp-admin/css/forms.css

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

     
    300300        echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom date format in the following field' ) . '</span></span></label>' .
    301301                '<label for="date_format_custom" class="screen-reader-text">' . __( 'Custom date format:' ) . '</label>' .
    302302                '<input type="text" name="date_format_custom" id="date_format_custom" value="' . esc_attr( get_option( 'date_format' ) ) . '" class="small-text" />' .
    303                 '<span class="screen-reader-text">' . __( 'example:' ) . ' </span> <span class="example">' . date_i18n( get_option( 'date_format' ) ) . '</span>' .
     303                '<br />' .
     304                '<span><strong>' . __( 'Preview:' ) . '</strong> </span> <span class="example">' . date_i18n( get_option( 'date_format' ) ) . '</span>' .
    304305                "<span class='spinner'></span>\n";
    305306?>
    306307        </fieldset>
     
    336337        echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom time format in the following field' ) . '</span></span></label>' .
    337338                '<label for="time_format_custom" class="screen-reader-text">' . __( 'Custom time format:' ) . '</label>' .
    338339                '<input type="text" name="time_format_custom" id="time_format_custom" value="' . esc_attr( get_option( 'time_format' ) ) . '" class="small-text" />' .
    339                 '<span class="screen-reader-text">' . __( 'example:' ) . ' </span> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
     340                '<br />' .
     341                '<span><strong>' . __( 'Preview:' ) . '</strong> </span> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
    340342                "<span class='spinner'></span>\n";
    341343
    342344        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";