diff --git a/src/wp-includes/Text/Diff/Engine/native.php b/src/wp-includes/Text/Diff/Engine/native.php
index e908cfecca..bae2c1a288 100644
|
a
|
b
|
class Text_Diff_Engine_native {
|
| 190 | 190 | } |
| 191 | 191 | $matches = $ymatches[$line]; |
| 192 | 192 | reset($matches); |
| 193 | | while (list(, $y) = each($matches)) { |
| | 193 | while ($y = current($matches)) { |
| 194 | 194 | if (empty($this->in_seq[$y])) { |
| 195 | 195 | $k = $this->_lcsPos($y); |
| 196 | 196 | assert($k > 0); |
| 197 | 197 | $ymids[$k] = $ymids[$k - 1]; |
| 198 | 198 | break; |
| 199 | 199 | } |
| | 200 | next($matches); |
| 200 | 201 | } |
| 201 | | while (list(, $y) = each($matches)) { |
| | 202 | while ($y = current($matches)) { |
| 202 | 203 | if ($y > $this->seq[$k - 1]) { |
| 203 | 204 | assert($y <= $this->seq[$k]); |
| 204 | 205 | /* Optimization: this is a common case: next match is |
| … |
… |
class Text_Diff_Engine_native {
|
| 211 | 212 | assert($k > 0); |
| 212 | 213 | $ymids[$k] = $ymids[$k - 1]; |
| 213 | 214 | } |
| | 215 | next($matches); |
| 214 | 216 | } |
| 215 | 217 | } |
| 216 | 218 | } |