mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 05:03:33 +09:00
- added default email templates links;
- fixed HTML in textarea field; - increased timeout for subscribtion;
This commit is contained in:
@@ -1052,7 +1052,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Forms' ) ) {
|
||||
'editor_class' => $class
|
||||
)
|
||||
); ?>
|
||||
<span class="description">For default text for plain-text emails please see this <a href="#<?php echo $field_data['id'] ?>">doc</a></span>
|
||||
<span class="description">For default text for plain-text emails please see this <a href="https://docs.ultimatemember.com/article/1342-plain-text-email-default-templates#<?php echo $field_data['id'] ?>" target="_blank">doc</a></span>
|
||||
</div>
|
||||
|
||||
<?php $html = ob_get_clean();
|
||||
|
||||
@@ -161,7 +161,7 @@ if ( ! class_exists( 'um\core\Tracking' ) ) {
|
||||
|
||||
$request = wp_remote_post( 'https://ultimatemember.com/?um_action=checkin', array(
|
||||
'method' => 'POST',
|
||||
'timeout' => 20,
|
||||
'timeout' => 45,
|
||||
'redirection' => 5,
|
||||
'httpversion' => '1.0',
|
||||
'blocking' => true,
|
||||
|
||||
@@ -613,10 +613,12 @@ function um_profile_field_filter_xss_validation( $value, $data, $type = '' ) {
|
||||
|
||||
if( 'text' == $type && ! in_array( $data['validate'], array( 'unique_email' ) ) || 'password' == $type ) {
|
||||
$value = esc_attr( $value );
|
||||
}elseif( $type == 'url' ) {
|
||||
} elseif( $type == 'url' ) {
|
||||
$value = esc_url( $value );
|
||||
} elseif ( 'textarea' == $type ){
|
||||
$value = wp_kses_post( $value );
|
||||
} elseif ( 'textarea' == $type ) {
|
||||
if ( empty( $data['html'] ) ) {
|
||||
$value = wp_kses_post( $value );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user