Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,
    you could fix that warning editing wp-code-highlight.php files located in
    wp-content/plugins/wp-code-highlight/wp-code-highlight.php
    Comment line 67-68 and add this line:

    //return preg_replace("/<pre(.*?)>(.*?)<\/pre>/ise",
    //      "'<pre class=\"wp-code-highlight prettyprint$line_numbers\">'.wch_stripslashes('$2').'</pre>'", $content);
    
    return preg_replace_callback("/<pre(.*?)>(.*?)<\/pre>/is",function($m) { return '<pre class=\"wp-code-highlight prettyprint$line_numbers\">'.wch_stripslashes('$m[2]').'</pre>'; },$content);

Viewing 1 replies (of 1 total)