Make WordPress Core

Ticket #54937: 54937.diff

File 54937.diff, 1.2 KB (added by tbember, 3 years ago)
  • wp-includes/class-wp-image-editor.php

    diff --git a/wp-includes/class-wp-image-editor.php b/wp-includes/class-wp-image-editor.php
    index ae275c24..84fa24db 100644
    a b abstract class WP_Image_Editor { 
    502502                switch ( $orientation ) {
    503503                        case 2:
    504504                                // Flip horizontally.
    505                                 $result = $this->flip( true, false );
     505                                $result = $this->flip( false, true );
    506506                                break;
    507507                        case 3:
    508508                                // Rotate 180 degrees or flip horizontally and vertically.
    abstract class WP_Image_Editor { 
    511511                                break;
    512512                        case 4:
    513513                                // Flip vertically.
    514                                 $result = $this->flip( false, true );
     514                                $result = $this->flip( true, false );
    515515                                break;
    516516                        case 5:
    517517                                // Rotate 90 degrees counter-clockwise and flip vertically.
    518518                                $result = $this->rotate( 90 );
    519519
    520520                                if ( ! is_wp_error( $result ) ) {
    521                                         $result = $this->flip( false, true );
     521                                        $result = $this->flip( true, false );
    522522                                }
    523523
    524524                                break;
    abstract class WP_Image_Editor { 
    531531                                $result = $this->rotate( 90 );
    532532
    533533                                if ( ! is_wp_error( $result ) ) {
    534                                         $result = $this->flip( true, false );
     534                                        $result = $this->flip( false, true );
    535535                                }
    536536
    537537                                break;