Make WordPress Core


Ignore:
Timestamp:
08/29/2019 11:17:30 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Date/Time: Restore the previous behavior of date_i18n() where invalid input would result in current time.

Make wp_date() return false on invalid timestamp input, for consistency with upstream PHP date() function.

Props Rarst.
Fixes #28636.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/date/theDate.php

    r45379 r45914  
    55 * @group datetime
    66 */
    7 class Tests_Date_TheDate extends WP_UnitTestCase {
     7class Tests_Date_The_Date extends WP_UnitTestCase {
    88
    99        /** @var array $hooks_called Count of hooks called. */
Note: See TracChangeset for help on using the changeset viewer.