PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | includes/class-updraft-smush-task.php +13 -13 4.5.4 → 4.7.0 View file →
@@ -156,12 +156,12 @@
156 156 $destination = WPO_WebP_Utils::get_destination_path($file_path);
157 157 if ($webp_tools_available && file_exists($destination)) {
158 158 if (is_multisite()) {
159 159 switch_to_blog($this->get_option('blog_id', 1));
160 - update_post_meta($attachment_id, 'wpo-webp-conversion-complete', true);
160 + update_post_meta($attachment_id, WPO_Webp_Convert_Image_Task::WEBP_CONVERSION_META_KEY, true);
161 161 restore_current_blog();
162 162 } else {
163 - update_post_meta($attachment_id, 'wpo-webp-conversion-complete', true);
163 + update_post_meta($attachment_id, WPO_Webp_Convert_Image_Task::WEBP_CONVERSION_META_KEY, true);
164 164 }
165 165 }
166 166
167 167 return $this->success;
@@ -246,9 +246,9 @@
246 246
247 247 // Make path relative and safe for migrations
248 248 $back_up_relative_path = preg_replace('#^'.wp_normalize_path($uploads_dir['basedir'].'/').'#', '', $back_up);
249 249
250 - update_post_meta($this->get_option('attachment_id'), 'original-file', $back_up_relative_path);
250 + update_post_meta($this->get_option('attachment_id'), '_wpo-original-file', $back_up_relative_path);
251 251
252 252 if (is_multisite()) {
253 253 restore_current_blog();
254 254 }
@@ -321,16 +321,16 @@
321 321 );
322 322
323 323 if (is_multisite()) {
324 324 switch_to_blog($this->get_option('blog_id', 1));
325 - update_post_meta($attachment_id, 'smush-complete', true);
326 - update_post_meta($attachment_id, 'smush-info', $info);
327 - update_post_meta($attachment_id, 'smush-stats', $stats);
325 + update_post_meta($attachment_id, '_wpo-smush-complete', true);
326 + update_post_meta($attachment_id, '_wpo-smush-info', $info);
327 + update_post_meta($attachment_id, '_wpo-smush-stats', $stats);
328 328 restore_current_blog();
329 329 } else {
330 - update_post_meta($attachment_id, 'smush-complete', true);
331 - update_post_meta($attachment_id, 'smush-info', $info);
332 - update_post_meta($attachment_id, 'smush-stats', $stats);
330 + update_post_meta($attachment_id, '_wpo-smush-complete', true);
331 + update_post_meta($attachment_id, '_wpo-smush-info', $info);
332 + update_post_meta($attachment_id, '_wpo-smush-stats', $stats);
333 333 }
334 334
335 335 $this->log("Successfully optimized the image - $file_path." . $info);
336 336 $this->set_status('complete');
@@ -352,14 +352,14 @@
352 352 $info = sprintf(__('Failed with error code %1$s - %2$s', 'wp-optimize'), $error_code, $error_message);
353 353
354 354 if (is_multisite()) {
355 355 switch_to_blog($this->get_option('blog_id', 1));
356 - update_post_meta($attachment_id, 'smush-info', $info);
357 - update_post_meta($attachment_id, 'smush-complete', false);
356 + update_post_meta($attachment_id, '_wpo-smush-info', $info);
357 + update_post_meta($attachment_id, '_wpo-smush-complete', false);
358 358 restore_current_blog();
359 359 } else {
360 - update_post_meta($attachment_id, 'smush-info', $info);
361 - update_post_meta($attachment_id, 'smush-complete', false);
360 + update_post_meta($attachment_id, '_wpo-smush-info', $info);
361 + update_post_meta($attachment_id, '_wpo-smush-complete', false);
362 362 }
363 363
364 364
365 365 do_action('ud_smush_task_failed', $this, $error_code, $error_message);