We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f0bdc commit c4915b5Copy full SHA for c4915b5
WordPress/Helpers/EscapingFunctionsTrait.php
@@ -226,7 +226,12 @@ final public function is_escaping_function( $functionName ) {
226
$this->addedCustomEscapingFunctions['escape'] = $this->customEscapingFunctions;
227
}
228
229
- return isset( $this->allEscapingFunctions[ strtolower( $functionName ) ] );
+ // Check if the $functionName is a static method or not.
230
+ if ( strpos( $functionName, '::' ) === false ) {
231
+ $functionName = strtolower( $functionName );
232
+ }
233
+
234
+ return isset( $this->allEscapingFunctions[ $functionName ] );
235
236
237
/**
0 commit comments