Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-inclu.../html-api
File: class-wp-html-text-replacement.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* HTML API: WP_HTML_Text_Replacement class
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage HTML-API
[5] Fix | Delete
* @since 6.2.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Core class used by the HTML tag processor as a data structure for replacing
[10] Fix | Delete
* existing content from start to end, allowing to drastically improve performance.
[11] Fix | Delete
*
[12] Fix | Delete
* This class is for internal usage of the WP_HTML_Tag_Processor class.
[13] Fix | Delete
*
[14] Fix | Delete
* @access private
[15] Fix | Delete
* @since 6.2.0
[16] Fix | Delete
* @since 6.5.0 Replace `end` with `length` to more closely match `substr()`.
[17] Fix | Delete
*
[18] Fix | Delete
* @see WP_HTML_Tag_Processor
[19] Fix | Delete
*/
[20] Fix | Delete
class WP_HTML_Text_Replacement {
[21] Fix | Delete
/**
[22] Fix | Delete
* Byte offset into document where replacement span begins.
[23] Fix | Delete
*
[24] Fix | Delete
* @since 6.2.0
[25] Fix | Delete
*
[26] Fix | Delete
* @var int
[27] Fix | Delete
*/
[28] Fix | Delete
public $start;
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Byte length of span being replaced.
[32] Fix | Delete
*
[33] Fix | Delete
* @since 6.5.0
[34] Fix | Delete
*
[35] Fix | Delete
* @var int
[36] Fix | Delete
*/
[37] Fix | Delete
public $length;
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* Span of text to insert in document to replace existing content from start to end.
[41] Fix | Delete
*
[42] Fix | Delete
* @since 6.2.0
[43] Fix | Delete
*
[44] Fix | Delete
* @var string
[45] Fix | Delete
*/
[46] Fix | Delete
public $text;
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* Constructor.
[50] Fix | Delete
*
[51] Fix | Delete
* @since 6.2.0
[52] Fix | Delete
*
[53] Fix | Delete
* @param int $start Byte offset into document where replacement span begins.
[54] Fix | Delete
* @param int $length Byte length of span in document being replaced.
[55] Fix | Delete
* @param string $text Span of text to insert in document to replace existing content from start to end.
[56] Fix | Delete
*/
[57] Fix | Delete
public function __construct( $start, $length, $text ) {
[58] Fix | Delete
$this->start = $start;
[59] Fix | Delete
$this->length = $length;
[60] Fix | Delete
$this->text = $text;
[61] Fix | Delete
}
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function