FIX: Custom CSS newlines are ignored during save

This commit is contained in:
savvasha
2022-06-14 16:59:56 +03:00
parent b34b0c47c1
commit ea5b1d1a7d

View File

@@ -722,7 +722,7 @@ if ( ! class_exists( 'SP_Admin_Settings' ) ) :
case 'textarea': case 'textarea':
if ( isset( $_POST[ $value['id'] ] ) ) { if ( isset( $_POST[ $value['id'] ] ) ) {
$option_value = wp_kses_post( trim( stripslashes( sanitize_text_field( wp_unslash( $_POST[ $value['id'] ] ) ) ) ) ); $option_value = wp_kses_post( trim( stripslashes( sanitize_textarea_field( wp_unslash( $_POST[ $value['id'] ] ) ) ) ) );
} else { } else {
$option_value = ''; $option_value = '';
} }