HTML getting stripped out of comments

2 views
Skip to first unread message

Gareth

unread,
Sep 17, 2009, 9:24:07 PM9/17/09
to Magic Fields
Hi all,

Thanks for helping move Flutter forward - Magic fields seems much
stabler and a lot less bloated.

Both Magic Fields and Flutter are stripping HTML from the comments.

I have commented out line 134 of main.php:

add_filter('pre_comment_content','mf_kses');

and this solves it - however anyone know what MF uses this for and
what impact it will have elsewhere?

Cheers.

Hunk

unread,
Sep 17, 2009, 11:33:42 PM9/17/09
to Magic Fields

this only is a filter for multi-line (textarea), is only used when you
save the post.

Hunk

unread,
Sep 17, 2009, 11:36:49 PM9/17/09
to Magic Fields
I review whether even makes sense to use this filter (previously used
another procedure for multi-line and we had to use this filter)

David

unread,
Sep 18, 2009, 6:28:19 AM9/18/09
to Magic Fields
I looked what do that filter and i found this site:

http://adambrown.info/p/wp_hooks/hook/pre_comment_content

So, pre_comment_content is executed before to save a comment in the
database...

And i think to you are right Gareth, this don't should be executed in
magic fields.

The bad thing of fork a project is to also fork the bugs, the good
thing is to we can fix them when we found them :p

I will speak with Hunk (Edgar) and i hope remove this filter in the
next version (we will release a new version in the next week)

Thanks for your feedback Gareth
Reply all
Reply to author
Forward
0 new messages