[Plugin: Piwik Analytics] htmlencoded track.code makes browser render to screen
-
Using WP v3.0.4 and Piwik v. 1.1.1
In my installation, the wp-piwik plugin stores the tracking code in the DB
(wp_options -> wp-piwik_jscode) in htmlencoded format. Like this:
& lt ;!-- Piwik --& gt; & lt;script type=& quot;text/j...The string is never decoded before output, so instead of working as a javascript, it is rendered to the browser screen.
I fixed this by simply changing line the file wp-piwik.php line 97:
from:
if ($bolDisplay) echo $strJSCode;
to:
if ($bolDisplay) echo html_entity_decode($strJSCode);
The topic ‘[Plugin: Piwik Analytics] htmlencoded track.code makes browser render to screen’ is closed to new replies.