Changeset 8199

Show
Ignore:
Timestamp:
06/26/08 18:34:28 (5 months ago)
Author:
ryan
Message:

Fix date() warning on Windows. Props ozh. fixes #7186

Files:

Legend:

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

    r8182 r8199  
    104104    global $wp_locale; 
    105105    $i = $unixtimestamp; 
     106    // Sanity check for PHP 5.1.0- 
     107    if ( -1 == $i ) 
     108        $i = false; 
     109     
    106110    if ( ( !empty( $wp_locale->month ) ) && ( !empty( $wp_locale->weekday ) ) ) { 
    107111        $datemonth = $wp_locale->get_month( date( 'm', $i ) );