Paid Memberships Pro
[resolved] text links and apostrophes not escaping (2 posts)

  1. iHuman
    Posted 3 years ago #

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


  2. Jason Coleman
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic