Showing images in comments
-
Hello,
I had been talking with you on your support forum, but this seems to be a livelier place. ??
I love this plugin – awesome functionality and great looks.
My problem is my users post images in comments, and that function doesn’t work with this plugin.
As per author suggestion I changed this:
$comment = wp_kses($comment, array( 'br' => array(), 'a' => array('href' => array(), 'title' => array()), 'i' => array(), 'b' => array(), 'u' => array(), 'strong' => array(), 'p' => array() ));
To this:
$comment = wp_kses($comment, array( 'br' => array(), 'a' => array('href' => array(), 'title' => array()), 'i' => array(), 'b' => array(), 'u' => array(), 'strong' => array(), 'p' => array(), 'img' => array( 'src'=>array(), 'width'=>array(), 'height'=>array(), 'alt'=>array() ) ));
I changed this in WC.php and in tpl-cpmment.php.
Unfortunately the images still show as links.
I’ve tried multiple themes, I’ve deactivated all other plugins, etc.
I understand this isn’t a bug, but if anyone else has been able to make this work I would appreciate assistance.
Thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Showing images in comments’ is closed to new replies.