Skip to content

Commit 509cc69

Browse files
fix(polylang): avoid suppressing filters for font queries
Agent-Logs-Url: https://github.com/helsingborg-stad/Municipio/sessions/596c6b63-d545-41bd-9fd1-5cf348dc39ee Co-authored-by: sebastianthulin <797129+sebastianthulin@users.noreply.github.com>
1 parent 0431df8 commit 509cc69

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

library/Integrations/Polylang/ResolveFontAttachmentQueries.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function makeFontAttachmentQueryLanguageAgnostic(WP_Query $query): void
4848
}
4949

5050
$query->set('lang', '');
51-
$query->set('suppress_filters', true);
5251
}
5352

5453
/**

library/Integrations/Polylang/ResolveFontAttachmentQueriesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testMakeFontAttachmentQueryLanguageAgnosticUpdatesArrayMimeTypeQ
4747
$sut->makeFontAttachmentQueryLanguageAgnostic($query);
4848

4949
static::assertSame('', $query->get('lang'));
50-
static::assertTrue($query->get('suppress_filters'));
50+
static::assertArrayNotHasKey('suppress_filters', $query->query_vars);
5151
}
5252

5353
#[TestDox('makeFontAttachmentQueryLanguageAgnostic() updates font attachment queries with string mime types')]
@@ -64,7 +64,7 @@ public function testMakeFontAttachmentQueryLanguageAgnosticUpdatesStringMimeType
6464
$sut->makeFontAttachmentQueryLanguageAgnostic($query);
6565

6666
static::assertSame('', $query->get('lang'));
67-
static::assertTrue($query->get('suppress_filters'));
67+
static::assertArrayNotHasKey('suppress_filters', $query->query_vars);
6868
}
6969

7070
#[TestDox('makeFontAttachmentQueryLanguageAgnostic() does not update non-font attachment queries')]

0 commit comments

Comments
 (0)