Broken esc_html function – Multilanguage with Qtranslate and Theme my login
-
In case some of you are using theme my login in combination with Qtranslate, you will notice that the “Lost password” link (and all action links) is not displaying properly.
Upon some research of the bug, I believe that the esc_html function is not working properly.
You will find it at:
wp-content/plugins/theme-my-login/includes/class-theme-my-login-template.php around line 329I replaced the code with the following and now it works perfectly for multilanguage sites.
public function the_action_links( $args = ” ) {
if ( $action_links = $this->get_action_links( $args ) ) {
echo ‘<ul class=”tml-action-links”>’ . “\n”;
foreach ( (array) $action_links as $link ) {
echo ‘- ‘; esc_html_e( $link[‘title’] ); echo ‘
‘ . “\n”;
}
echo ” . “\n”;
}
}
- The topic ‘Broken esc_html function – Multilanguage with Qtranslate and Theme my login’ is closed to new replies.