PDA

View Full Version : quercus and wordpress


ousmane
10-28-2010, 09:53 AM
Hello,

i'm using quercus with wordpress and i have problems with the language but i don't know if there is a link between the problem encountered and a file named formatting.php.

I want to know if i can use quercus and wordpress in french. Actually i'm using Quercus 4.0.11 and wordpress 3.0.1.

If I don't put the following code in formatting.php, i receive an error message.


Open wordpress/wp-includes/formatting.php.
Change the js_escape() function to:

function js_escape($text) {
$safe_text = wp_specialchars($text, 'double');
//$safe_text = preg_replace('/&#(x)?0*(?(1)27|39);?/i', "'", stripslashes($safe_text));
//$safe_text = preg_replace("/\r?\n/", "\\n", addslashes($safe_text));
//stripslashes($safe_text));
$safe_text = preg_replace("/\r/", "\n", addslashes($safe_text));
$safe_text = preg_replace("/\n/", "\n", addslashes($safe_text));
return apply_filters('js_escape', $safe_text, $text);
}

thank you for your help!