Skip to content

Commit 228692e

Browse files
committed
Pushed a fix for Excluded queries.
1 parent a113fce commit 228692e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/wpgraphql-logging/src/Logger/Rules/ExcludeQueryRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ExcludeQueryRule implements LoggingRuleInterface {
2424
*/
2525
public function passes(array $config, ?string $query_string = null): bool {
2626
$queries = $config[ BasicConfigurationTab::EXCLUDE_QUERY ] ?? '';
27-
if ( null === $query_string ) {
27+
if ( null === $query_string || '' === trim( $queries ) ) {
2828
return true;
2929
}
3030

0 commit comments

Comments
 (0)