Support » Fixing WordPress » Image tag in comments

  • Hi,

    i had looked around in forums and add in the img array tag into kns.php

    I had manage to use img src tag in comment posting.

    But the bug are the width and height couldn’t be add into kns or it will cause error.

    And the img src couldn’t specify width height

    thus the image too big and my theme went haywire.


    So now disable img tag.

    Would appreciate if someone could advise.


Viewing 3 replies - 1 through 3 (of 3 total)
  • So now disable img tag.

    I guess you did the smart thing. I don’t see any reason to let commenters to include a 1 MB picture in their comments 🙂

    If you really want to allow images in your comments, add the following line into your kses.php file under, for instance, the 'i' => array(), line:

    'img' => array('src' => array(), 'alt' => array(), 'width' => array(), 'height' => array()),

    i had try that. Unfortuntaely it not working.

    anyway i had disable all the html tag in kns.

    so now only textile.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image tag in comments’ is closed to new replies.