mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 04:04:35 +00:00
Customize: Allow 0:00-0:59 in date/time control when 24-hour time used.
* Let min hour be 0 and max be 23 in 24-hour time; let min hour be 1 and max be 12 in 12-hour time. * Show error notification when an invalid date value is provided, not just when not a future date. * Fix translation of custom validity message. * Start checking for validity after all inputs have been initially populated. * Remove support for being able to enter 24:00. * Cease forcing date input elements from being casted to integers, to allow for invalid inputs to be detected. Props westonruter, Presskopp, peterwilsoncc, atachibana for testing. See #39896, #28721. Fixes #42373. git-svn-id: https://develop.svn.wordpress.org/trunk@42042 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -599,6 +599,8 @@ function wp_default_scripts( &$scripts ) {
|
||||
esc_url( admin_url( 'theme-install.php' ) )
|
||||
),
|
||||
'publishSettings' => __( 'Publish Settings' ),
|
||||
'invalidDate' => __( 'Invalid date.' ),
|
||||
'invalidValue' => __( 'Invalid value.' ),
|
||||
) );
|
||||
$scripts->add( 'customize-selective-refresh', "/wp-includes/js/customize-selective-refresh$suffix.js", array( 'jquery', 'wp-util', 'customize-preview' ), false, 1 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user