Skip to content

Instantly share code, notes, and snippets.

@zioproto
Created April 17, 2014 10:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zioproto/10970990 to your computer and use it in GitHub Desktop.
Save zioproto/10970990 to your computer and use it in GitHub Desktop.
Fix qTranslate plugin for Wordpress 3.9
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'));
@Grawl
Copy link

Grawl commented Apr 26, 2014

thank you! it helps me for WP 3.9 and qTranslate 2.5.39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment