parent
bf93f747c2
commit
e5634c6946
|
@ -815,9 +815,7 @@ abstract class WC_Settings_API {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate Password Field.
|
* Validate Password Field. No input sanitization is used to avoid corrupting passwords.
|
||||||
*
|
|
||||||
* Make sure the data is escaped correctly, etc.
|
|
||||||
*
|
*
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param string|null $value Posted Value
|
* @param string|null $value Posted Value
|
||||||
|
@ -825,7 +823,7 @@ abstract class WC_Settings_API {
|
||||||
*/
|
*/
|
||||||
public function validate_password_field( $key, $value ) {
|
public function validate_password_field( $key, $value ) {
|
||||||
$value = is_null( $value ) ? '' : $value;
|
$value = is_null( $value ) ? '' : $value;
|
||||||
return wp_kses_post( trim( stripslashes( $value ) ) );
|
return trim( stripslashes( $value ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -127,7 +127,7 @@ return array(
|
||||||
),
|
),
|
||||||
'api_password' => array(
|
'api_password' => array(
|
||||||
'title' => __( 'API Password', 'woocommerce' ),
|
'title' => __( 'API Password', 'woocommerce' ),
|
||||||
'type' => 'text',
|
'type' => 'password',
|
||||||
'description' => __( 'Get your API credentials from PayPal.', 'woocommerce' ),
|
'description' => __( 'Get your API credentials from PayPal.', 'woocommerce' ),
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
|
|
Loading…
Reference in New Issue