Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow class methods in the customAutoEscapedFunctions property #1226

Closed
johnbillion opened this issue Nov 7, 2017 · 2 comments
Closed

Allow class methods in the customAutoEscapedFunctions property #1226

johnbillion opened this issue Nov 7, 2017 · 2 comments

Comments

@johnbillion
Copy link
Member

It's not possible to pass a class method name into the customAutoEscapedFunctions property. This means a method which is safe for output still needs to be marked as ok:

echo $this->build_toggler(); // WPCS: XSS ok;

This is similar to #1176 but not quite the same.

PHPCS 3.1.1, WPCS 0.13.1, PHP 7.1.0

@markkap
Copy link

markkap commented Nov 7, 2017

just the problem I faced this morning

@jrfnl
Copy link
Member

jrfnl commented Feb 3, 2018

Duplicate of #413 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants