- Timestamp:
- 07/09/2023 09:23:34 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-text-diff-renderer-table.php
r55276 r56178 286 286 // Length of all text between <ins> or <del>. 287 287 $stripped_matches = strlen( strip_tags( implode( ' ', $diff_matches[0] ) ) ); 288 // Since we count length of text between <ins> or <del> (instead of picking just one), 289 // we double the length of chars not in those tags. 288 /* 289 * Since we count length of text between <ins> or <del> (instead of picking just one), 290 * we double the length of chars not in those tags. 291 */ 290 292 $stripped_diff = strlen( strip_tags( $diff ) ) * 2 - $stripped_matches; 291 293 $diff_ratio = $stripped_matches / $stripped_diff; … … 417 419 $final_rows = array_keys( $final_matches ); 418 420 419 // Interleaves rows with blanks to keep matches aligned. 420 // We may end up with some extraneous blank rows, but we'll just ignore them later. 421 /* 422 * Interleaves rows with blanks to keep matches aligned. 423 * We may end up with some extraneous blank rows, but we'll just ignore them later. 424 */ 421 425 foreach ( $orig_rows_copy as $orig_row ) { 422 426 $final_pos = array_search( $orig_matches[ $orig_row ], $final_rows, true );
Note: See TracChangeset
for help on using the changeset viewer.