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 a113fce commit 228692eCopy full SHA for 228692e
plugins/wpgraphql-logging/src/Logger/Rules/ExcludeQueryRule.php
@@ -24,7 +24,7 @@ class ExcludeQueryRule implements LoggingRuleInterface {
24
*/
25
public function passes(array $config, ?string $query_string = null): bool {
26
$queries = $config[ BasicConfigurationTab::EXCLUDE_QUERY ] ?? '';
27
- if ( null === $query_string ) {
+ if ( null === $query_string || '' === trim( $queries ) ) {
28
return true;
29
}
30
0 commit comments