why does WP sometimes strip class and id from html?
-
WordPress is sometimes stripping class and id attributes from html tags after editing an existing post and I have no idea why.
The closest explanation I’ve found relates to kses.php disallowing certain strings, but that would surely happen consistently and not after minor edits of some existing posts?
* in WP 2.6.x – 2.7.x, not WPMU
* strips all class and id attributes from an edited post
* only affects existing posts, not consistently or frequently
* we only use HTML editing window, never visual
* can happen after either Edit or Quick Edit actions
* of two admins, one has experienced this problem numerous times, the other admin only once in six months
* in Post Revisions, the timestamp for the unexplained change has no user associated with it, ie:2 July, 2009 @ 18:19 by
2 July, 2009 @ 18:13 by xyzToday drove me to desperation because we made very minor edits to 35 posts (just removing a word from their titles) and 27 of them then lost all their attributes.
Does anyone know a reason or a fix?
- The topic ‘why does WP sometimes strip class and id from html?’ is closed to new replies.