Make WordPress Core

Ticket #10332: 10332.3.diff

File 10332.3.diff, 719 bytes (added by kirasong, 14 years ago)

Refresh of functions.php.diff (removal of check), since we're standardizing on PHP 5.2.4+ for WP 3.2

  • wp-includes/functions.php

     
    8484function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
    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
    9989        // see http://core.trac.wordpress.org/ticket/9396