Skip to content

Commit ba06389

Browse files
committed
Remove redundant after_tag()
parse_next_tag() is called in exactly 1 place, and it a few lines earlier `after_tag()` is called. after_tag() does some significant processing, so removing the redundant call has an impact on parsing speed
1 parent e75b3fb commit ba06389

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/wp-includes/html-api/class-wp-html-tag-processor.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,8 +1720,6 @@ private function skip_script_data(): bool {
17201720
* @phpstan-impure
17211721
*/
17221722
private function parse_next_tag(): bool {
1723-
$this->after_tag();
1724-
17251723
$html = $this->html;
17261724
$doc_length = strlen( $html );
17271725
$was_at = $this->bytes_already_parsed;

0 commit comments

Comments
 (0)