[wp-trac] [WordPress Trac] #26798: While inserting a post some values for 'post_date' throw a PHP exception

WordPress Trac noreply at wordpress.org
Fri Nov 7 02:59:25 UTC 2025


#26798: While inserting a post some values for 'post_date' throw a PHP exception
--------------------------------------+----------------------
 Reporter:  mobius5150                |       Owner:  pbearne
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  Date/Time                 |     Version:  3.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------
Changes (by wildworks):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61173" 61173]:
 {{{
 #!CommitTicketReference repository="" revision="61173"
 Tests: Fix failing malformed date test

 Dates without leading zeros (e.g., `2012-1-08`, `2012-01-8`) are now
 correctly recognized as valid dates. This change fixes the test cases to
 correctly reflect that these formats are valid and fixes an undefined
 variable reference.

 Follow-up to [61172].

 Props wildworks, westonruter.
 Fixes #26798.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/26798#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list