Very tired of escaping on development
-
Every time I need to check whether the function has already escaped.
And it’s even time-consuming to look at the function that is a wrapper function which might even contain another wrapper function.
Most importantly, there is no clear sign of how escaping should look like, I need to read the source code line by line.
I found this website ( https://developerka.org/2018/05/30/escape-core-functions-wporg-themes/#get_the_privacy_policy_link ) but it’s already not been updated for a long time.
Plus need to check the past history, take this for example ( https://core.trac.www.ads-software.com/ticket/13051 )
So, is there an easy way of doing this? It took me 30 minutes to check if
get_site_url
should be escaped withesc_url
, and now I cannot come out with a conclusion…
- The topic ‘Very tired of escaping on development’ is closed to new replies.