[wp-trac] [WordPress Trac] #65281: Custom Time & Date Format Fields Allow Empty Save Instead of Validation
WordPress Trac
noreply at wordpress.org
Thu May 28 05:54:44 UTC 2026
#65281: Custom Time & Date Format Fields Allow Empty Save Instead of Validation
-------------------------------------------------+-------------------------
Reporter: ashirhabib | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has-test- | Focuses:
info | administration
-------------------------------------------------+-------------------------
Comment (by khokansardar):
Thanks @westonruter for the minimal patch suggestion — that's a much
cleaner approach. I've updated the PR to drop the custom JS validation
entirely and instead:
- Removed novalidate="novalidate" from the <form> in options-general.php
so the browser's built-in constraint validation fires.
- Added required to the date_format_custom and time_format_custom inputs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65281#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list