From f297dcba9a09853775450518360e18ed3ea6ce47 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 19 May 2014 05:52:24 +0000 Subject: [PATCH] Add missing access modifiers to methods/members in `WP_Image_Editor_*` classes. See #27881, #22234. git-svn-id: https://develop.svn.wordpress.org/trunk@28513 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-image-editor-gd.php | 2 +- src/wp-includes/class-wp-image-editor-imagick.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-image-editor-gd.php b/src/wp-includes/class-wp-image-editor-gd.php index 303f5004c0..be6e6f475f 100644 --- a/src/wp-includes/class-wp-image-editor-gd.php +++ b/src/wp-includes/class-wp-image-editor-gd.php @@ -18,7 +18,7 @@ class WP_Image_Editor_GD extends WP_Image_Editor { protected $image = false; // GD Resource - function __destruct() { + public function __destruct() { if ( $this->image ) { // we don't need the original in memory anymore imagedestroy( $this->image ); diff --git a/src/wp-includes/class-wp-image-editor-imagick.php b/src/wp-includes/class-wp-image-editor-imagick.php index 4ebed4bae7..e65dd2e1c1 100644 --- a/src/wp-includes/class-wp-image-editor-imagick.php +++ b/src/wp-includes/class-wp-image-editor-imagick.php @@ -18,7 +18,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { protected $image = null; // Imagick Object - function __destruct() { + public function __destruct() { if ( $this->image instanceof Imagick ) { // we don't need the original in memory anymore $this->image->clear();