WordPress.org

Support

Support » Plugins and Hacks » Paid Memberships Pro » [Resolved] [Plugin: Paid Memberships Pro] text links and apostrophes not escaping

[Resolved] [Plugin: Paid Memberships Pro] text links and apostrophes not escaping

  • – enter a description for a membership type
    – use a word with an apostrophe in the description (ie you’ll)
    – add a hyperlink to some of the text
    – save the membership type
    – view it on the Membership Checkout page

    results: apostrophes are not escaped and links are incorrect

    view the description again in admin – it displays correctly, so it is being added to the database correctly, just not displaying on the front-end page correctly.

    http://wordpress.org/extend/plugins/paid-memberships-pro/

Viewing 1 replies (of 1 total)
  • Plugin Author Jason Coleman

    @strangerstudios

    iHuman, thanks for reaching out. We needed some stripslashes() action on the checkout page.

    This will be fixed in 1.4.9 (not sure of release yet), but to patch it yourself in the meantime:

    1. Open /paid-memberships-pro/pages/checkout.php.

    2. Find this line: (~line 40)

    if(!empty($pmpro_level->description))
    	echo apply_filters("the_content", $pmpro_level->description);

    3. Change it to this:

    if(!empty($pmpro_level->description))
    	echo apply_filters("the_content", stripslashes($pmpro_level->description));

    Let me know if this works for you.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Paid Memberships Pro] text links and apostrophes not escaping’ is closed to new replies.
Skip to toolbar