- Timestamp:
- 12/10/2023 01:17:29 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-text-replacement.php
r55734 r57179 16 16 * @access private 17 17 * @since 6.2.0 18 * @since 6.5.0 Replace `end` with `length` to more closely match `substr()`. 18 19 * 19 20 * @see WP_HTML_Tag_Processor … … 24 25 * 25 26 * @since 6.2.0 27 * 26 28 * @var int 27 29 */ … … 29 31 30 32 /** 31 * Byte offset into document where replacement span ends.33 * Byte length of span being replaced. 32 34 * 33 * @since 6.2.0 35 * @since 6.5.0 36 * 34 37 * @var int 35 38 */ 36 public $ end;39 public $length; 37 40 38 41 /** … … 40 43 * 41 44 * @since 6.2.0 45 * 42 46 * @var string 43 47 */ … … 49 53 * @since 6.2.0 50 54 * 51 * @param int $start Byte offset into document where replacement span begins.52 * @param int $ end Byte offset into document where replacement span ends.53 * @param string $text Span of text to insert in document to replace existing content from start to end.55 * @param int $start Byte offset into document where replacement span begins. 56 * @param int $length Byte length of span in document being replaced. 57 * @param string $text Span of text to insert in document to replace existing content from start to end. 54 58 */ 55 public function __construct( $start, $ end, $text ) {56 $this->start = $start;57 $this-> end = $end;58 $this->text = $text;59 public function __construct( $start, $length, $text ) { 60 $this->start = $start; 61 $this->length = $length; 62 $this->text = $text; 59 63 } 60 64 }
Note: See TracChangeset
for help on using the changeset viewer.