wp-includes/html-api/class-wp-html-open-elements.php:184Returns the node at the end of the stack of open elements, if one exists. If the stack is empty, returns null.
WP_HTML_Token|null public function current_node(): ?WP_HTML_Token { $current_node = end( $this->stack ); return $current_node ? $current_node : null; }Introduced in 6.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/html-api/class-wp-html-open-elements.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.