Ticket #17126: 17126.patch
| File 17126.patch, 719 bytes (added by , 15 years ago) |
|---|
-
wp-includes/functions.php
84 84 function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { 85 85 global $wp_locale; 86 86 $i = $unixtimestamp; 87 // Sanity check for PHP 5.1.0-88 if ( false === $i || intval($i) < 0 ) {89 if ( ! $gmt )90 $i = current_time( 'timestamp' );91 else92 $i = time();93 // we should not let date() interfere with our94 // specially computed timestamp95 $gmt = true;96 }97 87 98 88 // store original value for language with untypical grammars 99 89 // see http://core.trac.wordpress.org/ticket/9396