Make WordPress Core

Ticket #39195: 39195.patch

File 39195.patch, 565 bytes (added by chandrapatel, 8 years ago)

Added ! empty() check for file extension.

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

     
    149149                        $file_parts = pathinfo( $this->file );
    150150                        $filename = $this->file;
    151151
    152                         if ( 'pdf' == strtolower( $file_parts['extension'] ) ) {
     152                        if ( ! empty( $file_parts['extension'] ) && 'pdf' == strtolower( $file_parts['extension'] ) ) {
    153153                                $filename = $this->pdf_setup();
    154154                        }
    155155