WordPress-Coding-Standards icon indicating copy to clipboard operation
WordPress-Coding-Standards copied to clipboard

Auto escaped methods

Open Zackio opened this issue 9 years ago • 3 comments

Hi,

Is it possible to add a function in a static class to the auto escaped functions list? I can escape any function from the class but not the function specifically. ie: classname::function_name

Zackio avatar Jul 15 '15 06:07 Zackio

No, that isn't supported. The feature could be added though.

JDGrimes avatar Jul 15 '15 12:07 JDGrimes

Related: #473

JDGrimes avatar Oct 08 '15 22:10 JDGrimes

Are there any news on this? Additionally, I need to add non-static class functions (e.g. $class->function_name) and functions inside a namespace (e.g. NamespaceName\function_name)

adrianstaffen avatar Aug 23 '20 19:08 adrianstaffen

Even though this was the earlier issue, another issue was opened since and has a lot more discussion on it, including implementation ideas, so I'm going to close this issue in favour of the more recent issue #1176.

jrfnl avatar Dec 02 '22 14:12 jrfnl