mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 13:13:33 +09:00
- fixed saving shortcode + content block settings using sanitize;
This commit is contained in:
@@ -689,7 +689,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
|
||||
}
|
||||
|
||||
} elseif ( strstr( $key, 'um_editor' ) ) {
|
||||
$save[ $_metakey ]['content'] = $val;
|
||||
if ( 'block' === $array['post']['_type'] ) {
|
||||
$save[ $_metakey ]['content'] = wp_kses_post( $val );
|
||||
} else {
|
||||
$save[ $_metakey ]['content'] = sanitize_textarea_field( $val );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user