Make WordPress Core

Ticket #37608: 37608.patch

File 37608.patch, 614 bytes (added by JaworskiMatt, 8 years ago)

Proposed solution

  • src/wp-includes/class-wp-image-editor.php

     
    376376                        $suffix = $this->get_suffix();
    377377
    378378                $info = pathinfo( $this->file );
    379                 $dir  = $info['dirname'];
    380                 $ext  = $info['extension'];
     379                $dir  = pathinfo( $this->file, PATHINFO_DIRNAME );
     380                $ext  = pathinfo( $this->file, PATHINFO_EXTENSION );
    381381
    382382                $name = wp_basename( $this->file, ".$ext" );
    383383                $new_ext = strtolower( $extension ? $extension : $ext );