[wp-trac] [WordPress Trac] #59381: Issue with WordPress Year Widget for Years Below 1000
WordPress Trac
noreply at wordpress.org
Mon Sep 18 07:27:42 UTC 2023
#59381: Issue with WordPress Year Widget for Years Below 1000
--------------------------+-----------------------------
Reporter: idovecer | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I have noticed that the WordPress year widget does not function correctly
when years below 1000 are used. For instance, I have created a history
page where historical event dates are entered in WordPress date field.
When entering a date with a year below 1000, WordPress displays such dates
with leading zeros in admin area.
For example, if I enter the date as 01.01.420 (dd.mm.yyyy), the Year
Archive widget leads to /420/, which does not work as expected (4040 Not
found). However, if I manually add a leading zero in front /0420/, it
displays correctly as /0420/.
How can this issue be resolved?
Thank you.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59381>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list