From 09f0789e086afcb2951ad2a993c00e024d163e66 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 4 Feb 2009 21:45:55 +0000 Subject: [PATCH] Respect the translation argument of mysql2date again. Fixes #9035 and #8989. git-svn-id: http://svn.automattic.com/wordpress/trunk@10504 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ec4a02f43..6bcc79061 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -37,7 +37,10 @@ function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) { if( 'U' == $dateformatstring ) return $i; - return date_i18n( $dateformatstring, $i ); + if ( $translate) + return date_i18n( $dateformatstring, $i ); + else + return date( $dateformatstring, $i ); } /**