Make WordPress Core

Changeset 8199


Ignore:
Timestamp:
06/26/2008 06:34:28 PM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 ) );
Note: See TracChangeset for help on using the changeset viewer.