[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 Jan 24 08:48:32 UTC 2014


#26798: While inserting a post some values for 'post_date' throw a PHP exception
--------------------------+------------------------------
 Reporter:  mobius5150    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by nacin):

 * component:  Validation => Date/Time


Comment:

 Perhaps wp_checkdate() should be able to either:
  * take a string and break it up on its own
  * decline to pass obviously invalid values to checkdate()

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


More information about the wp-trac mailing list