Ticket #10332: 10332.diff

File 10332.diff, 476 bytes (added by nacin, 21 months ago)
  • wp-includes/functions.php

     
    8686        global $wp_locale; 
    8787        $i = $unixtimestamp; 
    8888        // Sanity check for PHP 5.1.0- 
    89         if ( false === $i || intval($i) < 0 ) { 
     89        if ( false === $i || ( intval($i) < 0 && -1 === strtotime( '1969-01-01' ) ) ) {  
    9090                if ( ! $gmt ) 
    9191                        $i = current_time( 'timestamp' ); 
    9292                else