Skip to content

Commit 57b5128

Browse files
committed
Avoid redundant get_attribute call
1 parent ac2fb56 commit 57b5128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/html-api/class-wp-css-id-selector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function matches( WP_HTML_Tag_Processor $processor ): bool {
4848
$case_insensitive = $processor->is_quirks_mode();
4949

5050
return $case_insensitive
51-
? 0 === strcasecmp( $id, $this->id )
52-
: $processor->get_attribute( 'id' ) === $this->id;
51+
? 0 === strcasecmp( $id, $this->id )
52+
: $id === $this->id;
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)