PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | classes/Optimization/Data/Noop.php +4 -4 1.10 → trunk View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2 namespace Imagify\Optimization\Data;
3 3
4 -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
4 +use Imagify\Media\MediaInterface;
5 5
6 6 /**
7 7 * Fallback class optimization data of "media groups" (aka attachments).
8 8 *
@@ -207,9 +207,9 @@
207 207 }
208 208
209 209 /**
210 210 * Get the file size of the full size file.
211 - * If the WebP size is available, it is used.
211 + * If the Nextgen size is available, it is used.
212 212 *
213 213 * @since 1.9
214 214 * @access public
215 215 * @author Grégory Viguier
@@ -215,12 +215,12 @@
215 215 * @author Grégory Viguier
216 216 *
217 217 * @param bool $human_format True to display the image human format size (1Mb).
218 218 * @param int $decimals Precision of number of decimal places.
219 - * @param bool $use_webp Use the WebP size if available.
219 + * @param bool $use_nextgen Use the Nextgen size if available.
220 220 * @return string|int
221 221 */
222 - public function get_optimized_size( $human_format = true, $decimals = 2, $use_webp = true ) {
222 + public function get_optimized_size( $human_format = true, $decimals = 2, $use_nextgen = true ) {
223 223 return $human_format ? imagify_size_format( 0, $decimals ) : 0;
224 224 }
225 225
226 226