mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fix new line in the content block field
This commit is contained in:
@@ -655,6 +655,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
|
||||
}
|
||||
} elseif ( false !== strpos( $key, 'um_editor' ) ) {
|
||||
if ( 'block' === $array['post']['_type'] ) {
|
||||
$val = str_replace( "\r\n\r\n", '<br>', $val );
|
||||
$save[ $field_id ]['content'] = wp_kses_post( $val );
|
||||
} else {
|
||||
$save[ $field_id ]['content'] = sanitize_textarea_field( $val );
|
||||
|
||||
Reference in New Issue
Block a user