Skip to content

Commit d02d85f

Browse files
committed
Add a check for escaping functions in the static methods
1 parent e1c145e commit d02d85f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WordPress/Sniffs/Security/EscapeOutputSniff.php

+4
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,10 @@ protected function check_code_is_escaped( $start, $end, $code = 'OutputNotEscape
792792

793793
// Content should be a class and a method/constant.
794794
$content = ! empty( $fully_qualified_name ) ? trim( $fully_qualified_name ) : $content;
795+
796+
if ( $this->is_escaping_function( $content ) ) {
797+
continue;
798+
}
795799
}
796800
} else {
797801
$content = $this->tokens[ $i ]['content'];

0 commit comments

Comments
 (0)