Proper fix for qTranslate plugin for Wordpress 3.9
diff --git i/public/wp-content/plugins/qtranslate/qtranslate_core.php w/public/wp-content/plugins/qtranslate/qtranslate_core.php | |
index 17b4669..b4c49cf 100644 | |
--- i/public/wp-content/plugins/qtranslate/qtranslate_core.php | |
+++ w/public/wp-content/plugins/qtranslate/qtranslate_core.php | |
@@ -455,9 +455,9 @@ function qtrans_strftime($format, $date, $default = '', $before = '', $after = ' | |
return $before.strftime($format, $date).$after; | |
} | |
-function qtrans_dateFromPostForCurrentLanguage($old_date, $format ='', $before = '', $after = '') { | |
+function qtrans_dateFromPostForCurrentLanguage($old_date, $format ='') { | |
global $post; | |
- return qtrans_strftime(qtrans_convertDateFormat($format), mysql2date('U',$post->post_date), $old_date, $before, $after); | |
+ return qtrans_strftime(qtrans_convertDateFormat($format), mysql2date('U',$post->post_date), $old_date); | |
} | |
function qtrans_dateModifiedFromPostForCurrentLanguage($old_date, $format ='') { |
This comment has been minimized.
This comment has been minimized.
Hey akirk, I did the fix that warenhaus offered. But i didn´t understand how tom apply your fixes? Thanks, |
This comment has been minimized.
This comment has been minimized.
manesal, You can search the code from line 455, Good luck! |
This comment has been minimized.
This comment has been minimized.
Hey thanks for this files !! It's work fine on WP3.9, but we have a new problem with the new update of wordpress WP4.3 Thanks for help ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
thank you! see also here for further fixes, related to WP3.9's new Visual Editor: https://gist.github.com/warenhaus/10990386
based on chsxf's recent update (2.6) of http://wordpress.org/plugins/mqtranslate/