Fixed problem with [code] tag and inline html: please notice that it is now assumed that with inline html you're not using [html] tag, so DON'T because it will unescape the code twice which is BAD ;)

This commit is contained in:
real_nowhereman 2008-01-31 09:14:15 +00:00
parent e372e1ea5e
commit e71729de5c

View File

@ -8,7 +8,7 @@ Author: Hydra, NoWhereMan
Author URI: http://flatpress.sf.net
*/
define('BBCODE_ESCAPE_HTML', true);
define('BBCODE_ESCAPE_HTML', 0);
define('BBCODE_ENABLE_COMMENTS', false);
define('BBCODE_USE_EDITOR', true);
define('BBCODE_URL_MAXLEN', 40);
@ -340,6 +340,10 @@ function do_bbcode_code ($action, $attributes, $content, $params, $node_object)
$temp_str = str_replace( chr(10).chr(10), chr(10), $temp_str );
$temp_str = str_replace( chr(32), ' ', $temp_str );
if (!BBCODE_ESCAPE_HTML) {
$temp_str = wp_specialchars($temp_str);
}
$a = '';
if (function_exists('plugin_syntaxhighlighter_foot')) {