Created
April 17, 2014 10:11
-
-
Save zioproto/10970990 to your computer and use it in GitHub Desktop.
Fix qTranslate plugin for Wordpress 3.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wp-content/plugins/qtranslate/qtranslate_core.php b/wp-content/plugins/qtranslate/qtranslate_core.php | |
index 17b4669..9ac128a 100644 | |
--- a/wp-content/plugins/qtranslate/qtranslate_core.php | |
+++ b/wp-content/plugins/qtranslate/qtranslate_core.php | |
@@ -414,6 +414,7 @@ function qtrans_updateTermLibrary() { | |
function qtrans_strftime($format, $date, $default = '', $before = '', $after = '') { | |
// don't do anything if format is not given | |
+ return $default; | |
if($format=='') return $default; | |
// add date suffix ability (%q) to strftime | |
$day = intval(ltrim(strftime("%d",$date),'0')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you! it helps me for WP 3.9 and qTranslate 2.5.39