Skip to content

Instantly share code, notes, and snippets.

@jevgen
Forked from zioproto/qtranslate_wordpress39.patch
Last active August 29, 2015 14:13
Show Gist options
  • Save jevgen/c5602057fd6a413240c0 to your computer and use it in GitHub Desktop.
Save jevgen/c5602057fd6a413240c0 to your computer and use it in GitHub Desktop.
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'));
@jevgen
Copy link
Author

jevgen commented Jan 13, 2015

works with WP 4.1 too

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