Plugin Updates
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*
|
||||
* @access private
|
||||
* @since 6.2.0
|
||||
* @since 6.5.0 Replace `end` with `length` to more closely match `substr()`.
|
||||
*
|
||||
* @see WP_HTML_Tag_Processor
|
||||
*/
|
||||
@@ -23,22 +24,25 @@ class WP_HTML_Text_Replacement {
|
||||
* Byte offset into document where replacement span begins.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
public $start;
|
||||
|
||||
/**
|
||||
* Byte offset into document where replacement span ends.
|
||||
* Byte length of span being replaced.
|
||||
*
|
||||
* @since 6.5.0
|
||||
*
|
||||
* @since 6.2.0
|
||||
* @var int
|
||||
*/
|
||||
public $end;
|
||||
public $length;
|
||||
|
||||
/**
|
||||
* Span of text to insert in document to replace existing content from start to end.
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $text;
|
||||
@@ -48,13 +52,13 @@ class WP_HTML_Text_Replacement {
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param int $start Byte offset into document where replacement span begins.
|
||||
* @param int $end Byte offset into document where replacement span ends.
|
||||
* @param string $text 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, $end, $text ) {
|
||||
$this->start = $start;
|
||||
$this->end = $end;
|
||||
$this->text = $text;
|
||||
public function __construct( $start, $length, $text ) {
|
||||
$this->start = $start;
|
||||
$this->length = $length;
|
||||
$this->text = $text;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user