Make WordPress Core


Ignore:
Timestamp:
12/24/2003 08:43:04 PM (22 years ago)
Author:
saxmatt
Message:

Add kses HTML cleaning to comment functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r646 r650  
    13091309            $attributes = $regex[2];
    13101310            if($attributes) {
    1311                 // fix to avoid CSS defacements
    1312                 if ($is_comment) {
    1313                     $attributes = str_replace('style=', 'title=', $attributes);
    1314                     $attributes = str_replace('class=', 'title=', $attributes);
    1315                     $attributes = str_replace('id=', 'title=', $attributes);
    1316                 }
     1311
    13171312                $attributes = ' '.$attributes;
    13181313            }
Note: See TracChangeset for help on using the changeset viewer.