Updated Useful Functions for Plugin and Theme Security (markdown)
@@ -1,5 +1,8 @@
|
||||
The snippets below are a collection of PHP functions to help WordPress Plugin/Theme developer secure their code.
|
||||
WordPress has some sanitisation functions which should always be used, and correctly used. See https://developer.wordpress.org/themes/theme-security/data-sanitization-escaping/
|
||||
|
||||
However, when reporting issues to vendor, we noticed that we were always seeing the same mistake/s (for example, checking an archive for malicious files after being extracted etc) for which there were no WordPress function for.
|
||||
|
||||
The snippets below are a collection of PHP functions to help WordPress Plugin/Theme developers secure their code.
|
||||
|
||||
## is_url_local()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user