From 97c39c24a2661eb51b06c2a1e329e3dcb6f3c65f Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 28 Apr 2011 15:13:30 +0000 Subject: [PATCH] Remove PHP 5.1/Windows code from date_i18n. Allows timestamps from pre-1970. props DH-Shredder, fixes #10332. git-svn-id: http://svn.automattic.com/wordpress/trunk@17747 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 5112785bc0..a0037f7efd 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -84,16 +84,6 @@ function current_time( $type, $gmt = 0 ) { function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) { global $wp_locale; $i = $unixtimestamp; - // Sanity check for PHP 5.1.0- - if ( false === $i || intval($i) < 0 ) { - if ( ! $gmt ) - $i = current_time( 'timestamp' ); - else - $i = time(); - // we should not let date() interfere with our - // specially computed timestamp - $gmt = true; - } // store original value for language with untypical grammars // see http://core.trac.wordpress.org/ticket/9396