WordPress.org

Make WordPress Core

Ticket #17126: 17126.patch

File 17126.patch, 719 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-includes/functions.php

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