| @@ -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 | |