Coding Standards: Ignore the single WordPress.PHP.RestrictedPHPFunctions.create_function_create_function violation.

This is intentional, for older PHP support.

See #45934.


git-svn-id: https://develop.svn.wordpress.org/trunk@44560 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2019-01-11 03:44:20 +00:00
parent 63fbf4a316
commit 65f5fcb0fb
1 changed files with 1 additions and 0 deletions

View File

@ -12,5 +12,6 @@ function tests_make_plural_form_function( $nplurals, $expression ) {
\$index = (int)($expression);
return (\$index < $nplurals)? \$index : $nplurals - 1;";
// phpcs:ignore WordPress.PHP.RestrictedPHPFunctions.create_function_create_function
return create_function( '$n', $func_body );
}