[wp-trac] [WordPress Trac] #64522: Clarify expected behavior for invalid weekday values in WP_Locale::get_weekday()
WordPress Trac
noreply at wordpress.org
Fri Jan 16 19:15:37 UTC 2026
#64522: Clarify expected behavior for invalid weekday values in
WP_Locale::get_weekday()
--------------------------+------------------------------
Reporter: shishir1 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 4.5
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by swissspidy):
At first glance I don't see why we would want to replace perfectly valid
error flow (PHP notice/warning) with our own validatiob & doing_it_wrong.
The current behavior already tells the developer that their code is wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64522#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list