Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to allow additional tags and attribute.


  • redcocker
    Member

    @redcocker

    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.

    So, <pre class="value">my code</pre> was replaced with <pre>my code</pre>.

    Any thoughts?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar