mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Add ->get_quality() method to WP_Image_Editor class.
Adds unit tests. Props markoheijnen. Fixes #28154. git-svn-id: https://develop.svn.wordpress.org/trunk@28879 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -143,7 +143,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
if ( is_wp_error( $updated_size ) )
|
||||
return $updated_size;
|
||||
|
||||
return $this->set_quality( $this->quality );
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -160,7 +160,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
if ( is_wp_error( $quality_result ) ) {
|
||||
return $quality_result;
|
||||
} else {
|
||||
$quality = $this->quality;
|
||||
$quality = $this->get_quality();
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user