WordPress.org

Make WordPress Core

Ticket #33642: 33642.8.patch

File 33642.8.patch, 605 bytes (added by mikeschroder, 3 years ago)

Fix typo in strip_meta() Exception handling.

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

    diff --git src/wp-includes/class-wp-image-editor-imagick.php src/wp-includes/class-wp-image-editor-imagick.php
    index 0b0ea2f..37f1466 100644
    class WP_Image_Editor_Imagick extends WP_Image_Editor { 
    690690                                $this->image->setImageProperty( 'Thumb::Image::Height', '' );
    691691                                $this->image->setImageProperty( 'Thumb::Document::Pages', '' );
    692692                        }
    693                 } catch ( Excpetion $e ) {
     693                } catch ( Exception $e ) {
    694694                        return new WP_Error( 'image_strip_meta_error', $e->getMessage() );
    695695                }
    696696