WP_HTML_Processor::generate_implied_end_tags_thoroughly()

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use WP_HTML_Processor::generate_implied_end_tags instead.

Closes elements that have implied end tags, thoroughly.

Description

See the HTML specification for an explanation why this is different from generating end tags in the normal sense.

See also

Source

private function generate_implied_end_tags_thoroughly() {
	$elements_with_implied_end_tags = array(
		'P',
	);

	while ( in_array( $this->state->stack_of_open_elements->current_node(), $elements_with_implied_end_tags, true ) ) {
		$this->state->stack_of_open_elements->pop();
	}
}

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.