Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.