WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. iHuman
    Member
    Posted 2 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.

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

  2. strangerstudios
    Member
    Plugin Author

    Posted 2 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)

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic