Ticket #10332: functions.php.diff
File functions.php.diff, 655 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
old new 86 86 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { 87 87 global $wp_locale; 88 88 $i = $unixtimestamp; 89 // Sanity check for PHP 5.1.0-90 if ( false === $i || intval($i) < 0 ) {91 if ( ! $gmt )92 $i = current_time( 'timestamp' );93 else94 $i = time();95 // we should not let date() interfere with our96 // specially computed timestamp97 $gmt = true;98 }99 89 100 90 // store original value for language with untypical grammars 101 91 // see http://core.trac.wordpress.org/ticket/9396