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

  • Resolved iHuman


    – 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.

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


    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)

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

    3. Change it to this:

    	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 ‘[Plugin: Paid Memberships Pro] text links and apostrophes not escaping’ is closed to new replies.