The attributes on my comment tags are being stripped. I’ve tracked it down to the wp_kses_split function, but can’t get any further. The attributes are still on the tags before the comment string goes through this function, but are removed when it comes out.
I decided to back and try the kses.php from WP 1.0 again and found some strange results. Some of the attribute tags are on now and some are stripped. I looked at $allowedtags, comparing WP 1.0 to the CVS and they differ.
In WP 1.0:
'a' => array('href' => array('minlen' => 6, 'maxlen' => 250),
'rel' => array('minlen' => 3, 'maxlen' => 250)),</code
'a' => array('href',
href is not being stripped now when I use kses.php from 1.0, but the title tag is. With 1.0, the line HTML allowed is printing with Array="" in several places (where an array is declared in $allowedtags), but with the CVS version it was printing this line correctly.
Does anyone have a working copy of this file?
- You must be logged in to reply to this topic.