Ticket #42373: 42373.2.diff
File 42373.2.diff, 1.4 KB (added by , 8 years ago) |
---|
-
src/wp-includes/customize/class-wp-customize-date-time-control.php
142 142 <div class="time-fields clear"> 143 143 <label for="{{ idPrefix }}date-time-hour" class="screen-reader-text"><?php esc_html_e( 'Hour' ); ?></label> 144 144 <# var maxHour = data.twelveHourFormat ? 12 : 24; #> 145 <input id="{{ idPrefix }}date-time-hour" type="number" size="2" autocomplete="off" class="date-input hour" data-component="hour" min="1" max="{{ maxHour }}"> 145 <# if ( data.twelveHourFormat ) { #> 146 <input id="{{ idPrefix }}date-time-hour" type="number" size="2" autocomplete="off" class="date-input hour" data-component="hour" min="0" max="{{ maxHour }}"> 147 <# } else { #> 148 <input id="{{ idPrefix }}date-time-hour" type="number" size="2" autocomplete="off" class="date-input hour" data-component="hour" min="0" max="{{ maxHour-1 }}"> 149 <# } #> 146 150 <span class="time-special-char date-time-separator">:</span> 147 151 <label for="{{ idPrefix }}date-time-minute" class="screen-reader-text"><?php esc_html_e( 'Minute' ); ?></label> 148 152 <input id="{{ idPrefix }}date-time-minute" type="number" size="2" autocomplete="off" class="date-input minute" data-component="minute" min="0" max="59">