[wp-trac] [WordPress Trac] #28992: mysql2date() return empty string not false
WordPress Trac
noreply at wordpress.org
Tue Oct 13 01:41:33 UTC 2015
#28992: mysql2date() return empty string not false
-------------------------------------------------+-------------------------
Reporter: pbearne | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Date/Time | Release
Severity: normal | Version: 3.8
Keywords: needs-testing dev-feedback needs- | Resolution:
refresh | Focuses:
-------------------------------------------------+-------------------------
Comment (by pbearne):
Added a _doing_it_wrong() call to mysql2date so we can at a later time
change it to a return false if a bad date is passed instead of the current
state where an empty string can returned
Added $this->setExpectedIncorrectUsage( 'mysql2date' ); to all the test
cases that where failing after I added the do it wrong
Moved two already existing tests for mysql2date() from post to the new
test class
This function should fixed in a later version
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28992#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list