From df8a0901939fb3a5a1f8a6839199762bd2ce4889 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 19 May 2014 05:53:14 +0000 Subject: [PATCH] Add missing access modifiers to methods/members in `WP_Image_Editor_*` classes. See #27881, #22234. Built from https://develop.svn.wordpress.org/trunk@28513 git-svn-id: http://core.svn.wordpress.org/trunk@28339 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-image-editor-gd.php | 2 +- wp-includes/class-wp-image-editor-imagick.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-image-editor-gd.php b/wp-includes/class-wp-image-editor-gd.php index 303f5004c0..be6e6f475f 100644 --- a/wp-includes/class-wp-image-editor-gd.php +++ b/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/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index 4ebed4bae7..e65dd2e1c1 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/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();