Skip to content

Commit d942cf8

Browse files
committed
Ignore meta_query warning
1 parent 5e887e4 commit d942cf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inc/tokens/class-access-token.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ public static function get_by_id( $id ) {
6666
$args = [
6767
'number' => 1,
6868
'count_total' => false,
69-
'meta_query' => [
69+
70+
// We use an EXISTS query here, limited by 1, so we can ignore
71+
// the performance warning.
72+
'meta_query' => [ // WPCS: tax_query OK
7073
[
7174
'key' => $key,
7275
'compare' => 'EXISTS',

0 commit comments

Comments
 (0)