WordPress.org

Forums

Disable html tags in comment (5 posts)

  1. fuzzy_logic
    Member
    Posted 10 years ago #

    How do I disable html tags in comment? I'm using WP 1.5.

  2. fuzzy_logic
    Member
    Posted 10 years ago #

    bump

  3. Kafkaesqui

    Posted 10 years ago #

    All of them?

    Go into wp-includes/kses.php, look for the variable array $allowedtags, and comment out (// place two slashes at the start of the line) for the tags you don't want to work in comments. Some should already be commented out.

  4. fuzzy_logic
    Member
    Posted 10 years ago #

    What if I just want to disable all the tags altogether?

  5. Kafkaesqui

    Posted 10 years ago #

    Delete them from the array. That'll work. Or if you don't want to be so brutal about it, use PHP multi-line commenting by placing

    /*

    Right at the start of the line for the first tag ('a' =>...), and

    */

    Just at the end of the line for the last tag ('ul' => ...). So you'll have:

    /* 'a' => array(

    ...

    'ul' => array(), */

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.