WP_HTML_Tag_Processor::sort_start_ascending( WP_HTML_Text_Replacement $a, WP_HTML_Text_Replacement $b ): int

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.

Compare two WP_HTML_Text_Replacement objects.

Parameters

$aWP_HTML_Text_Replacementrequired
First attribute update.
$bWP_HTML_Text_Replacementrequired
Second attribute update.

Return

int Comparison value for string order.

Source

	} else {
		$this->remove_attribute( 'class' );
	}
}

/**
 * Applies attribute updates to HTML document.
 *
 * @since 6.2.0
 * @since 6.2.1 Accumulates shift for internal cursor and passed pointer.
 * @since 6.3.0 Invalidate any bookmarks whose targets are overwritten.
 *
 * @param int $shift_this_point Accumulate and return shift for this position.
 * @return int How many bytes the given pointer moved in response to the updates.
 */
private function apply_attributes_updates( int $shift_this_point ): int {
	if ( ! count( $this->lexical_updates ) ) {

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

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