Repository navigation
Commit 6a4c704
Media: Use imageflip() in WP_Image_Editor_GD::flip().
Replaces the imagecopyresampled() implementation, which relies on negative source dimensions, with imageflip(). The old approach produces incorrect pixel data with PHP 8.6's bundled GD 2.4.0.
See #66113.1 parent 0d859ba commit 6a4c704
1 file changed
Lines changed: 11 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
457 | 444 | | |
458 | | - | |
459 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
460 | 451 | | |
461 | 452 | | |
462 | | - | |
| 453 | + | |
463 | 454 | | |
464 | 455 | | |
465 | 456 | | |
| |||
0 commit comments