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
This commit is contained in:
parent
9406ca3bb8
commit
f297dcba9a
@ -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 );
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user