How to allow additional tags and attribute.
I am using bbpress2.0 (bbress 2.0.1 plugin) on WordPress 3.2.1 and want to allow “pre” tag and “class” attribute for non-admin users.
I modified /includes/kses.php in the WordPress.
I placed fllowing code in the definition of $allowedtags.
'pre' => array(
'class' => array ()),
Nevertheless, “class” attribute was removed.
<pre class="value">my code</pre>was replaced with
- You must be logged in to reply to this topic.