Skip to content

Commit fa2ca4d

Browse files
committed
Temporarily disable the prelim check to pass tests
I need to find another to solve this. May need to compare the perfomance of `is_targetted_token()` and `is_callback_function()` with the `prelim_check_regex`
1 parent f28de3f commit fa2ca4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WordPress/AbstractFunctionRestrictionsSniff.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ public function process_token( $stackPtr ) {
188188
// Preliminary check. If the content of the T_STRING is not one of the functions we're
189189
// looking for, we can bow out before doing the heavy lifting of checking whether
190190
// this is a function call.
191-
if ( preg_match( $this->prelim_check_regex, $this->tokens[ $stackPtr ]['content'] ) !== 1 ) {
192-
return;
193-
}
191+
// if ( preg_match( $this->prelim_check_regex, $this->tokens[ $stackPtr ]['content'] ) !== 1 ) {
192+
// return;
193+
// }
194194

195195
if ( false === $this->is_targetted_token( $stackPtr ) ) {
196196
return;

0 commit comments

Comments
 (0)