Plugin Directory

Changeset 1091313


Ignore:
Timestamp:
02/16/2015 12:46:56 PM (11 years ago)
Author:
znaeff
Message:

Moved ct_unmark_red() to cleantalk-admin.php

Location:
cleantalk-spam-protect/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cleantalk-spam-protect/trunk/cleantalk-admin.php

    r1073975 r1091313  
    518518}
    519519
     520/**
     521 * Unmark bad words
     522 * @param string $message
     523 * @return string Cleat comment
     524 */
     525function ct_unmark_red($message) {
     526    $message = preg_replace("/\<font rel\=\"cleantalk\" color\=\"\#FF1000\"\>(\S+)\<\/font>/iu", '$1', $message);
     527
     528    return $message;
     529}
     530
    520531?>
  • cleantalk-spam-protect/trunk/cleantalk-public.php

    r1091178 r1091313  
    741741    kses_remove_filters();
    742742    wp_update_comment($comment);
    743 }
    744 
    745 /**
    746  * Unmark bad words
    747  * @param string $message
    748  * @return string Cleat comment
    749  */
    750 function ct_unmark_red($message) {
    751     $message = preg_replace("/\<font rel\=\"cleantalk\" color\=\"\#FF1000\"\>(\S+)\<\/font>/iu", '$1', $message);
    752 
    753     return $message;
    754743}
    755744
Note: See TracChangeset for help on using the changeset viewer.