* fixed #1546 via wrapping custom HTML in iframe block;

This commit is contained in:
Mykyta Synelnikov
2024-09-26 18:14:11 +03:00
parent 592b4e6ecd
commit 05dd388911
4 changed files with 14 additions and 2 deletions
+11
View File
@@ -1148,3 +1148,14 @@ small.um-max-filesize span{
float: none;
height: auto;
}
.um-textarea-html-value {
border: none;
width: 100%;
max-width: none;
margin: 0;
padding: 0;
overflow: auto;
max-height: none;
height: auto;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -260,7 +260,7 @@ function um_profile_field_filter_hook__textarea( $value, $data ) {
return '';
}
if ( ! empty( $data['html'] ) ) {
return $value;
return '<iframe class="um-textarea-html-value" title="' . esc_attr( $data['label'] ) . '" srcdoc="' . wp_kses_post( $value ) .'"></iframe>';
}
$description_key = UM()->profile()->get_show_bio_key( UM()->fields()->global_args );
+1
View File
@@ -224,6 +224,7 @@ IMPORTANT: PLEASE UPDATE THE PLUGIN TO AT LEAST VERSION 2.6.7 IMMEDIATELY. VERSI
* Fixed: Sorting by last login value when "Hide my last login" is set
* Fixed: PHP errors while uploading files
* Fixed: Parsing error on the license activation
* Fixed: Saving field value when type is textarea and using HTML is enabled
**Templates required update**