Hi @kinghill
Could you please tell us which button text you’re referring to?
Regards,
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!
PS: Same with the “px” bug. It’s on EVERY “width” field in the Appearance settings.
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!
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,
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!
PS: The px issue is resolved, thank you!