Ticket #10332: 10332.2.diff
File 10332.2.diff, 642 bytes (added by , 14 years ago) |
---|
-
wp-includes/functions.php
85 85 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { 86 86 global $wp_locale; 87 87 $i = $unixtimestamp; 88 // Sanity check for PHP 5.1.0- 89 if ( false === $i || intval($i) < 0) {88 // Sanity check for PHP 5.1.0- and for 32-bit systems. 89 if ( false === $i || ( intval($i) < 0 && ( -1 === strtotime( '1969-01-01' ) || $i != date( 'U', $i ) ) ) ) { 90 90 if ( ! $gmt ) 91 91 $i = current_time( 'timestamp' ); 92 92 else