File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ public function process_token( $stackPtr ) {
327327 if ( $ stripped_content !== $ content ) {
328328 $ vars_without_wpdb = array_filter (
329329 TextStrings::getEmbeds ( $ content ),
330- function ( $ symbol ) {
330+ static function ( $ symbol ) {
331331 return preg_match ( '`^\{?\$\{?wpdb\??->` ' , $ symbol ) !== 1 ;
332332 }
333333 );
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ public function process_token( $stackPtr ) {
176176
177177 $ bad_variables = array_filter (
178178 TextStrings::getEmbeds ( $ this ->tokens [ $ this ->i ]['content ' ] ),
179- function ( $ symbol ) {
179+ static function ( $ symbol ) {
180180 return preg_match ( '`^\{?\$\{?wpdb\??->` ' , $ symbol ) !== 1 ;
181181 }
182182 );
You can’t perform that action at this time.
0 commit comments