wordpress-develop
wordpress-develop copied to clipboard
Add input validation to sanitize_text_field
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