mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #408 from woocommerce/pcp-315-html-input
Do not remove html for plugin settings text inputs
This commit is contained in:
commit
2967b63fdf
1 changed files with 3 additions and 6 deletions
|
@ -372,14 +372,11 @@ class SettingsListener {
|
|||
case 'text':
|
||||
case 'number':
|
||||
case 'ppcp-text-input':
|
||||
case 'ppcp-password':
|
||||
$settings[ $key ] = isset( $raw_data[ $key ] ) ? sanitize_text_field( $raw_data[ $key ] ) : '';
|
||||
$settings[ $key ] = isset( $raw_data[ $key ] ) ? wp_kses_post( $raw_data[ $key ] ) : '';
|
||||
break;
|
||||
case 'ppcp-password':
|
||||
case 'password':
|
||||
if ( empty( $raw_data[ $key ] ) ) {
|
||||
break;
|
||||
}
|
||||
$settings[ $key ] = sanitize_text_field( $raw_data[ $key ] );
|
||||
$settings[ $key ] = $raw_data[ $key ] ?? '';
|
||||
break;
|
||||
case 'ppcp-multiselect':
|
||||
$values = isset( $raw_data[ $key ] ) ? (array) $raw_data[ $key ] : array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue