Skip to content

Commit 65ff610

Browse files
committed
fix: remove redundant is_string check in sensitive field sanitization
1 parent c241c03 commit 65ff610

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/admin/settings/class-settings-sanitize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public function sanitize_sensitive_field( $value, $key ) {
283283
}
284284

285285
// If input is masked, return existing encrypted key.
286-
if ( is_string( $value ) && strpos( $value, '**' ) !== false ) {
286+
if ( strpos( $value, '**' ) !== false ) {
287287
return $stored_encrypted_key;
288288
}
289289

0 commit comments

Comments
 (0)