From 0f8e0c3b7418bd48ea72c3dd5b35d39b275f396f Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@10504 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ec4a02f438..6bcc79061c 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 ); } /**