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 | inc/3rd-party/regenerate-thumbnails/classes/Main.php +5 -5 1.10 → trunk View file →
@@ -68,9 +68,9 @@
68 68 if ( ! class_exists( '\RegenerateThumbnails_Regenerator' ) ) {
69 69 return;
70 70 }
71 71
72 - add_filter( 'rest_dispatch_request', [ $this, 'maybe_init_attachment' ], 4, 4 );
72 + add_filter( 'rest_dispatch_request', [ $this, 'maybe_init_attachment' ], 4, 4 );
73 73 add_action( 'imagify_after_' . static::HOOK_SUFFIX, [ $this, 'after_regenerate_thumbnails' ], 8, 2 );
74 74 }
75 75
76 76
@@ -157,21 +157,21 @@
157 157
158 158 /**
159 159 * Optimize the sizes that have been regenerated.
160 160 */
161 - // If the media has WebP versions, recreate them for the sizes that have been regenerated.
161 + // If the media has next-gen versions, recreate them for the sizes that have been regenerated.
162 162 $data = $process->get_data();
163 163 $optimization_data = $data->get_optimization_data();
164 164
165 165 if ( ! empty( $optimization_data['sizes'] ) ) {
166 166 foreach ( $optimization_data['sizes'] as $size_name => $size_data ) {
167 - $non_webp_size_name = $process->is_size_webp( $size_name );
167 + $non_nextgen_size_name = $process->is_size_next_gen( $size_name );
168 168
169 - if ( ! $non_webp_size_name || ! isset( $sizes[ $non_webp_size_name ] ) ) {
169 + if ( ! $non_nextgen_size_name || ! isset( $sizes[ $non_nextgen_size_name ] ) ) {
170 170 continue;
171 171 }
172 172
173 - // Add the WebP size.
173 + // Add the next-gen size.
174 174 $sizes[ $size_name ] = [];
175 175 }
176 176 }
177 177