mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed sanitizing the description field with allowed HTML inside;
This commit is contained in:
@@ -59,7 +59,7 @@ if ( ! class_exists( 'um\admin\core\Admin_DragDrop' ) ) {
|
||||
}
|
||||
|
||||
foreach ( $_POST as $key => $value ) {
|
||||
|
||||
// don't use sanitize_key here because of a key can be in Uppercase
|
||||
$key = sanitize_text_field( $key );
|
||||
|
||||
// adding rows
|
||||
|
||||
@@ -579,7 +579,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
|
||||
$form[ $k ] = (int) $form[ $k ];
|
||||
break;
|
||||
case 'textarea':
|
||||
if ( ! empty( $field['html'] ) ) {
|
||||
if ( ! empty( $field['html'] ) || ( UM()->profile()->get_show_bio_key( $form ) === $k && UM()->options()->get( 'profile_show_html_bio' ) ) ) {
|
||||
$form[ $k ] = wp_kses_post( $form[ $k ] );
|
||||
} else {
|
||||
$form[ $k ] = sanitize_textarea_field( $form[ $k ] );
|
||||
|
||||
Reference in New Issue
Block a user