Skip to content

Commit

Permalink
PICKME: fix bug with tag_name query casing
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Nov 7, 2024
1 parent 8b6b02c commit 9691991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@ public function next_tag( $query = null ): bool {
continue;
}

if ( isset( $query['tag_name'] ) && $query['tag_name'] !== $this->get_token_name() ) {
// @todo uppercase tag_name 1 time, not every loop.
if ( isset( $query['tag_name'] ) && strtoupper( $query['tag_name'] ) !== $this->get_token_name() ) {
continue;
}

Expand Down

0 comments on commit 9691991

Please sign in to comment.