Qtranslate fix for 2.9.3
-
In case anyone is using this plugin with qtranslate, here is the fix you can do to get it working properly:
In page-links-to.php around line 139:
function get_post_meta( $post_id, $key ) { $meta = get_post_meta( absint( $post_id ), $key, true ); if ( '' === $meta ) return false; return $meta; }
Change the last line to
return __($meta);
All that this does is making sure that the field is passed through Gettext before being returned. This is enough for saving different links per language, such as “[:en]english link[:de]german link”.
I’ve only used this for pages linked from menus though, but it works fine there.
- The topic ‘Qtranslate fix for 2.9.3’ is closed to new replies.