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
This commit is contained in:
Peter Westwood 2009-02-04 21:45:55 +00:00
parent 4ad180ca5b
commit 0f8e0c3b74
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) {
if( 'U' == $dateformatstring ) if( 'U' == $dateformatstring )
return $i; return $i;
if ( $translate)
return date_i18n( $dateformatstring, $i ); return date_i18n( $dateformatstring, $i );
else
return date( $dateformatstring, $i );
} }
/** /**