Changeset 57179 for trunk/src/wp-includes/html-api/class-wp-html-span.php
- 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-span.php
r55734 r57179 19 19 * @access private 20 20 * @since 6.2.0 21 * @since 6.5.0 Replaced `end` with `length` to more closely align with `substr()`. 21 22 * 22 23 * @see WP_HTML_Tag_Processor … … 27 28 * 28 29 * @since 6.2.0 30 * 29 31 * @var int 30 32 */ … … 32 34 33 35 /** 34 * Byte offset into document where span ends.36 * Byte length of this span. 35 37 * 36 * @since 6.2.0 38 * @since 6.5.0 39 * 37 40 * @var int 38 41 */ 39 public $ end;42 public $length; 40 43 41 44 /** … … 44 47 * @since 6.2.0 45 48 * 46 * @param int $start Byte offset into document where replacement span begins.47 * @param int $ end Byte offset into document where replacement span ends.49 * @param int $start Byte offset into document where replacement span begins. 50 * @param int $length Byte length of span. 48 51 */ 49 public function __construct( $start, $ end) {50 $this->start = $start;51 $this-> end = $end;52 public function __construct( $start, $length ) { 53 $this->start = $start; 54 $this->length = $length; 52 55 } 53 56 }
Note: See TracChangeset
for help on using the changeset viewer.