Skip to content

Conversation

@Hug0-Drelon
Copy link
Member

@Hug0-Drelon Hug0-Drelon commented Nov 12, 2025

What?

Add WordPress stubs override for sanitize_text_field, maybe_serialize, sanitize_key.

Why?

Prevent to add boilerplate code and to do checks that are already done in these functions.

How?

  • Create a dedicated stub file.
  • Allow third party to opt-in in their own project

@Hug0-Drelon Hug0-Drelon self-assigned this Nov 12, 2025
@Hug0-Drelon Hug0-Drelon added the enhancement New feature or request label Nov 12, 2025
@Hug0-Drelon Hug0-Drelon merged commit 41f6991 into master Nov 12, 2025
2 checks passed
@Hug0-Drelon Hug0-Drelon deleted the wordpress-stubs-override branch November 12, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants