WordPress.org

Ready to get started?Download WordPress

Forums

'id=' bug (9 posts)

  1. lennart
    Member
    Posted 10 years ago #

    Hi,
    did anyone notice that wordpress removes all occurences of 'id=' in comments? I did not try out posts. That broke a couple of links I added and source code as well. Can we cure that?
    Lennart

  2. Lester Chan
    Member
    Posted 10 years ago #

    I dont really get what you mean. the id= removed from which part of the comments?

  3. Nick Momrik
    Member
    Posted 10 years ago #

    There are certain tags that are allowed for comments and the id attribute is not one of them. If you want to allow it, you will need to add it. I've never done it, but there is a page in the Wiki about it.
    http://wiki.wordpress.org/index.php/OverrideAllowedTags

  4. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    No this is actually a bug, it shouldn't remove id= in say URIs or other places in text. I spotted the code that did this the other day but I forgot to fix it and I can't quite remember where it was. I'll look again when I fix up the new filter system.

  5. Nick Momrik
    Member
    Posted 10 years ago #

    Then why isn't it listed in the allowed tags?

  6. Nick Momrik
    Member
    Posted 10 years ago #

    If you allow id= in comment text doesn't that give the possibility that someone gives something an id that is already used elsewhere on the page, thus causing invalid xhtml? Or am I way off track and this discussion is about something completely different?

  7. Alex King
    Member
    Posted 10 years ago #

    I think the problem was id= as part of an URL like this:
    http://example.com/index.php?id=123

  8. Nick Momrik
    Member
    Posted 10 years ago #

    Ahhhh....that makes sense.

  9. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Fixed in CVS.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.