Make WordPress Core

Changeset 17747


Ignore:
Timestamp:
04/28/2011 03:13:30 PM (14 years ago)
Author:
nacin
Message:

Remove PHP 5.1/Windows code from date_i18n. Allows timestamps from pre-1970. props DH-Shredder, fixes #10332.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r17643 r17747  
    8585    global $wp_locale;
    8686    $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         else
    92             $i = time();
    93         // we should not let date() interfere with our
    94         // specially computed timestamp
    95         $gmt = true;
    96     }
    9787
    9888    // store original value for language with untypical grammars
Note: See TracChangeset for help on using the changeset viewer.