| 1 | Index: wp-includes/functions.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/functions.php (revision 17680) |
|---|
| 4 | +++ wp-includes/functions.php (working copy) |
|---|
| 5 | @@ -84,16 +84,6 @@ |
|---|
| 6 | function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { |
|---|
| 7 | global $wp_locale; |
|---|
| 8 | $i = $unixtimestamp; |
|---|
| 9 | - // Sanity check for PHP 5.1.0- |
|---|
| 10 | - if ( false === $i || intval($i) < 0 ) { |
|---|
| 11 | - if ( ! $gmt ) |
|---|
| 12 | - $i = current_time( 'timestamp' ); |
|---|
| 13 | - else |
|---|
| 14 | - $i = time(); |
|---|
| 15 | - // we should not let date() interfere with our |
|---|
| 16 | - // specially computed timestamp |
|---|
| 17 | - $gmt = true; |
|---|
| 18 | - } |
|---|
| 19 | |
|---|
| 20 | // store original value for language with untypical grammars |
|---|
| 21 | // see http://core.trac.wordpress.org/ticket/9396 |
|---|