This question is somehow related to this other question.
Provided that is seems we have a solution for the magic quotes issues, why the WP Core team does not allow them?
This is unclear to me and I couldn't find any official statement explaining this decision: just mentions sparse in some trac tickets and blog posts:
- Apparently the issue has been rones by @westonruter: http://ift.tt/1GgeHWi
- This post from @westonruter actually looks like to be positive: http://ift.tt/1FSlvG4
As far as I can see, filter_* functions are the best way (even better than WP core functions, in my opinion) to handle validation, filtering and sanitation. Also, they are part of PHPNG (therefore, PHP 7) and everywhere I can see posts saying to use these functions (here in SO, as well as elsewhere).
Aucun commentaire:
Enregistrer un commentaire