December 13, 2008

Press This WordPress 2.7

Filed under: Uncategorized — Tags: — lpopejoy @ 12:09 am

It is really cool… But when I tried to use it I got this:

Fatal error: Call to undefined function: htmlspecialchars_decode() in /mypath/icsblog/wp-admin/press-this.php on line 554

So…

Open the referenced file (press-this.php) and add this function at the top of the file:

    function htmlspecialchars_decode($string,$style=ENT_COMPAT)
    {
        $translation = array_flip(get_html_translation_table(HTML_SPECIALCHARS,$style));
        if($style === ENT_QUOTES){ $translation['''] = '''; }
        return strtr($string,$translation);
    }

Thanks to http://www.tacticaltechnique.com/web-development/php4-friendly-htmlspecialchars_decode/ for providing the function!!

And that should fix the problem!