[Plugin: WP SyntaxHighlighter] Bug Report: Error in JavaScript imports
-
Hello,
The bugs been around for a few versions so I thought I better report it to save myself fixing it each time π
Basically on line 415 of wp-syntaxhighlighter.php you have
echo "<script type=\"text/javascript\" src=\"".$wp_sh_plugin_url.$lib_dir."/scripts/shCore.js?ver=\".$version></script>\n";
Which is then outputting
<script type="text/javascript" src="http://website.com/wp-content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js?"ver=3.0></script>
instead of
<script type="text/javascript" src="http://website.com/wp-content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js?ver=3.0"></script>
to the browser which throws up a load of validation errors.My version of the fixed line is:
echo "<script type=\"text/javascript\" src=\"".$wp_sh_plugin_url.$lib_dir."/scripts/shCore.js?ver=".$version."\"></script>\n";
Hope that helps,
Carl
- The topic ‘[Plugin: WP SyntaxHighlighter] Bug Report: Error in JavaScript imports’ is closed to new replies.