[wp-trac] [WordPress Trac] #65281: Custom Time & Date Format Fields Allow Empty Save Instead of Validation
WordPress Trac
noreply at wordpress.org
Sun May 24 08:18: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 sanayasir):
I tested this issue on WordPress Playground 7.1 Alpha.
Previously, the General Settings page allowed saving the settings even
when the custom Date Format and Time Format fields were left empty/null.
After testing the fix, the behavior now works as expected according to the
ticket requirements:
When the custom date/time format fields are cleared, the settings are no
longer saved.
A validation error message is displayed: “Please configure a valid date
and time format.”
The issue appears to be fixed successfully.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65281#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list