WordPress.org

Make WordPress Core

Ticket #17278: 17278.diff

File 17278.diff, 534 bytes (added by greuben, 4 years ago)
  • wp-includes/functions.php

     
    8383 */ 
    8484function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { 
    8585        global $wp_locale; 
    86         $i = $unixtimestamp; 
     86        $i = $unixtimestamp ? $unixtimestamp : current_time( 'timestamp', $gmt ); 
    8787 
    8888        // store original value for language with untypical grammars 
    8989        // see http://core.trac.wordpress.org/ticket/9396