WordPress: Spam-Words Highlight

So gendert stellt zeigt Funktion comment_text() in der /wp-includes/template-functions-comment.php recht deutlich die Spam-Words in Beitrgen in der WordPress Moderation an:

if (0 == $comment->comment_approved)
{
$ar_filter = explode(chr(13) . chr(10), get_settings(‘moderation_keys’));
for ($i_filter= 0; $i_filter < count($ar_filter); $i_filter++) { $comment_text = eregi_replace('(' . trim($ar_filter[$i_filter]) . ')', '>span style="background: orange"<1', $comment_text); } } echo $comment_text;

Das Resultat sieht dann etwa so aus:
Trackback Spam in der Moderation

0 Responses to “WordPress: Spam-Words Highlight”


Comments are currently closed.