diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index edce8d2b7d..66085ac503 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -504,7 +504,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { $max_colors = pow( 2, $indexed_pixel_depth ); if ( is_callable( array( $this->image, 'getImageColors' ) ) ) { $current_colors = $this->image->getImageColors(); - $max_colors = min( $max_colors, $current_colors ); + $max_colors = min( $max_colors, $current_colors ); } $this->image->quantizeImage( $max_colors, $this->image->getColorspace(), 0, false, false ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9c2793d24d..76e2e3fd15 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-beta3-60046'; +$wp_version = '6.8-beta3-60047'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.