: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* HTML API: WP_HTML_Text_Replacement class
* Core class used by the HTML tag processor as a data structure for replacing
* existing content from start to end, allowing to drastically improve performance.
* This class is for internal usage of the WP_HTML_Tag_Processor class.
* @since 6.5.0 Replace `end` with `length` to more closely match `substr()`.
* @see WP_HTML_Tag_Processor
class WP_HTML_Text_Replacement {
* Byte offset into document where replacement span begins.
* Byte length of span being replaced.
* Span of text to insert in document to replace existing content from start to end.
* @param int $start Byte offset into document where replacement span begins.
* @param int $length Byte length of span in document being replaced.
* @param string $text Span of text to insert in document to replace existing content from start to end.
public function __construct( $start, $length, $text ) {