Skip to content

Commit f86c69a

Browse files
committed
HTML API: Remove unused operation property assignment from stack events
The operation string property is no longer read — all checks use the is_pop boolean instead. Skip the assignment in the constructor.
1 parent 0e5fb75 commit f86c69a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/wp-includes/html-api/class-wp-html-stack-event.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ class WP_HTML_Stack_Event {
8585
*/
8686
public function __construct( WP_HTML_Token $token, string $operation, string $provenance ) {
8787
$this->token = $token;
88-
$this->operation = $operation;
8988
$this->provenance = $provenance;
9089
$this->is_pop = self::POP === $operation;
9190
}

0 commit comments

Comments
 (0)