New Function to change html lang attribute to a region independent breaks html
-
The new Advanced option to change html lang attribute to a region independent form conflicts with the output you added to the footer (add_tp_language_lang_attribute), if i choose the region independent form the lang tag in the footer still has the region attached to it the one in the html element gets stripped.
Your very last checkin broke it: svn #2749599, the function that is called is the following:
/** * @param $output * @return $output * * adds a new attribute in footer, tp_language_lang, for Automatic User Language Detection to rely on for finding the current language */ public function add_tp_language_lang_attribute(){ global $TRP_LANGUAGE; $html ='<template id="tp-language" lang="'. esc_attr($TRP_LANGUAGE) . '"></template>'; echo $html; /* phpcs:ignore *///ignored because the html is constructed by us }
This function also needs to strip the region from it, otherwise we confuse everyone with two different lang tags.
Can you please fix that and release a quickfix, i downgraded for now….
Thanks a lot,
Paul
- The topic ‘New Function to change html lang attribute to a region independent breaks html’ is closed to new replies.