WordPress.org

Ready to get started?Download WordPress

Forums

Bypassing WordPress filter in a plugin (4 posts)

  1. SickBoy
    Member
    Posted 9 years ago #

    I'm writing a plugin for wordpress that puts a link to other script into the content passing into the url some parameters. The link is something like:

    script.php?par=1&par2=2

    The problem is that the link is somehow filtered into

    script.php?par=1&par2=2

    Is there any way to avoid this.

    Thanks a lot in advance.

  2. SickBoy
    Member
    Posted 9 years ago #

    Wooops. Seems here is changes inverse :P the second line is something like

    script.php=par=1& a m p ;par2=2

  3. jalenack
    Member
    Posted 9 years ago #

    Well if the link is changed into:

    script.php=par=1&par2=2

    in your HTML code, that is a good thing. WordPress is making your HTML valid. It will not affect the functionality of the link whatsoever

  4. SickBoy
    Member
    Posted 9 years ago #

    but it does affect. php script gets par1 as 1 but it does not get any other parameter

Topic Closed

This topic has been closed to new replies.

About this Topic