Ticket #10332: functions.php.diff

File functions.php.diff, 655 bytes (added by gosunatxrea, 4 years ago)

added <wp-includes/>

  • wp-includes/functions.php

    old new  
    8686function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { 
    8787        global $wp_locale; 
    8888        $i = $unixtimestamp; 
    89         // Sanity check for PHP 5.1.0- 
    90         if ( false === $i || intval($i) < 0 ) { 
    91                 if ( ! $gmt ) 
    92                         $i = current_time( 'timestamp' ); 
    93                 else 
    94                         $i = time(); 
    95                 // we should not let date() interfere with our 
    96                 // specially computed timestamp 
    97                 $gmt = true; 
    98         } 
    9989 
    10090        // store original value for language with untypical grammars 
    10191        // see http://core.trac.wordpress.org/ticket/9396