← All changes
|
inc/3rd-party/nextgen-gallery/classes/DynamicThumbnails.php
+2
-4
1.10
→
trunk
View file →
| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Imagify\ThirdParty\NGG; |
| 3 | 3 | |
| 4 | -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); | |
| 4 | +use Imagify\Traits\InstanceGetterTrait; | |
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | 7 | * Class that handles the optimization of thumbnails dynamically generated. |
| 8 | 8 | * |
| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | * @since 1.9 |
| 10 | 10 | * @author Grégory Viguier |
| 11 | 11 | */ |
| 12 | 12 | class DynamicThumbnails { |
| 13 | - use \Imagify\Traits\InstanceGetterTrait; | |
| 13 | + use InstanceGetterTrait; | |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * The queue containing the sizes, grouped by image ID. |
| 17 | 17 | * |
| @@ -77,15 +77,13 @@ | ||
| 77 | 77 | * @author Grégory Viguier |
| 78 | 78 | */ |
| 79 | 79 | public function optimize() { |
| 80 | 80 | if ( empty( static::$sizes ) ) { |
| 81 | - // ¯\(°_o)/¯ | |
| 82 | 81 | return; |
| 83 | 82 | } |
| 84 | 83 | |
| 85 | 84 | foreach ( static::$sizes as $image_id => $sizes ) { |
| 86 | 85 | if ( empty( static::$images[ $image_id ] ) ) { |
| 87 | - // ¯\(°_o)/¯ | |
| 88 | 86 | continue; |
| 89 | 87 | } |
| 90 | 88 | |
| 91 | 89 | $sizes = array_filter( $sizes ); |