wordpress-develop icon indicating copy to clipboard operation
wordpress-develop copied to clipboard

Add input validation to sanitize_text_field

Open asmitha-16 opened this issue 1 week ago • 3 comments

This PR improves sanitize_text_field by:

  • Adding a type check to ensure only strings are processed
  • Preventing unexpected behavior for non-string inputs
  • Improving stability and edge-case handling

asmitha-16 avatar Jan 12 '26 11:01 asmitha-16