Make WordPress Core

Ticket #9588: 9588.10.diff

File 9588.10.diff, 534 bytes (added by Denis-de-Bernardy, 16 years ago)
  • wp-includes/functions.php

     
    8888        $i = $unixtimestamp;
    8989        // Sanity check for PHP 5.1.0-
    9090        if ( false === $i || intval($i) < 0 ) {
    91                 if ( ! $gmt )
    92                         $i = current_time( 'timestamp' );
    93                 else
    94                         $i = time();
     91                $i = current_time( 'timestamp', $gmt );
    9592                // we should not let date() interfere with our
    9693                // specially computed timestamp
    9794                $gmt = true;