• Hi, since the update, simple HTML tags (like a <br>) I use for my button texts get removed and thus are no longer working.
    The issue with the max-width (no px anymore) on the forms has already been reported.

    Fortunately, I’m not at the production stage yet with my site so I’m happy to wait for the next version. Just wanted to make sure that you know of this bug.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kinghill

    Could you please tell us which button text you’re referring to?

    Regards,

    Thread Starter kinghill

    (@kinghill)

    All of them.
    Any and all button texts in UM Settings-Appearance shows this behavior: Profile, Registration Form, Login Form.

    It seems to me that with the update you implemented some new PHP parsing that checks for HTML tags and strips them out.
    In that case, I’d suggest a setting of “allowed” tags so that we can get back control of our buttons!
    Thanks!

    Thread Starter kinghill

    (@kinghill)

    PS: Same with the “px” bug. It’s on EVERY “width” field in the Appearance settings.

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @kinghill

    The bug with px will be fixed in the next 2.2.1 version. You can download the pre-release here https://downloads.wordpress.org/plugin/ultimate-member.2.2.1-beta.zip

    Regarding sanitizing fields’ values since 2.2.0 you are right. These enhancements have been added related to XSS vulnerabilities. There is a way to disable sanitizing or change its type for some fields you need but this way you can put your site at risk.

    See the next code lines and hook:

    add_filter( 'um_settings_map', 'um_custom_settings_map', 10, 1);
    function um_custom_settings_map($settings_map) {
    $settings_map['register_secondary_btn_word']['sanitize'] = 'wp_kses';
    return $settings_map;
    }

    The same for individual form settings but using another hook and data array

    add_filter( 'um_form_meta_map', 'um_custom_form_meta_map', 10, 1);

    Let me know if you have other questions,
    Best Regards!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂

    Regards,

    Thread Starter kinghill

    (@kinghill)

    Hi sorry for not responding, for some reason WP didn’t notify me of your reply from a week ago. Only now did I receive the resolved message…

    Since I’m not a PHP or WP developer, I’m a little overwhelmed by your suggestions. What ecaxtly do I put where if I want my button texts in the Login and Registration forms to allow for a <br> tag?

    Thanks for clarifying!

    Thread Starter kinghill

    (@kinghill)

    PS: The px issue is resolved, thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ultimate Member 2.2.0: HTML tags in button texts get removed’ is closed to new replies.