| @@ -128,9 +128,9 @@ | ||
| 128 | 128 | |
| 129 | 129 | $success = $this->task_manager->compress_single_image($image, $options, $server); |
| 130 | 130 | |
| 131 | 131 | if (!$success) { |
| 132 | - return new WP_Error('compress_failed', get_post_meta($image, 'smush-info', true)); | |
| 132 | + return new WP_Error('compress_failed', get_post_meta($image, '_wpo-smush-info', true)); | |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | $response = array(); |
| 136 | 136 | $response['status'] = true; |
| @@ -138,11 +138,11 @@ | ||
| 138 | 138 | $response['options'] = $options; |
| 139 | 139 | $response['server'] = $server; |
| 140 | 140 | $response['success'] = $success; |
| 141 | 141 | $response['restore_possible'] = $backup; |
| 142 | - $response['summary'] = get_post_meta($image, 'smush-info', true); | |
| 142 | + $response['summary'] = get_post_meta($image, '_wpo-smush-info', true); | |
| 143 | 143 | |
| 144 | - $smush_stats = get_post_meta($image, 'smush-stats', true); | |
| 144 | + $smush_stats = get_post_meta($image, '_wpo-smush-stats', true); | |
| 145 | 145 | if (isset($smush_stats['sizes-info'])) { |
| 146 | 146 | $response['sizes-info'] = WP_Optimize()->include_template('images/smush-details.php', true, array('sizes_info' => $smush_stats['sizes-info'])); |
| 147 | 147 | } |
| 148 | 148 | |
| @@ -426,15 +426,15 @@ | ||
| 426 | 426 | if (is_multisite()) switch_to_blog($blog_id); |
| 427 | 427 | |
| 428 | 428 | foreach ($selected_images[$blog_id] as $attachment_id) { |
| 429 | 429 | if ($unmark) { |
| 430 | - delete_post_meta($attachment_id, 'smush-complete'); | |
| 431 | - delete_post_meta($attachment_id, 'smush-marked'); | |
| 432 | - delete_post_meta($attachment_id, 'smush-info'); | |
| 430 | + delete_post_meta($attachment_id, '_wpo-smush-complete'); | |
| 431 | + delete_post_meta($attachment_id, '_wpo-smush-marked'); | |
| 432 | + delete_post_meta($attachment_id, '_wpo-smush-info'); | |
| 433 | 433 | } else { |
| 434 | - update_post_meta($attachment_id, 'smush-complete', true); | |
| 435 | - update_post_meta($attachment_id, 'smush-marked', true); | |
| 436 | - update_post_meta($attachment_id, 'smush-info', $info); | |
| 434 | + update_post_meta($attachment_id, '_wpo-smush-complete', true); | |
| 435 | + update_post_meta($attachment_id, '_wpo-smush-marked', true); | |
| 436 | + update_post_meta($attachment_id, '_wpo-smush-info', $info); | |
| 437 | 437 | } |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | 440 | if (is_multisite()) restore_current_blog(); |
| @@ -634,9 +634,9 @@ | ||
| 634 | 634 | public function get_smush_settings_form($data) { |
| 635 | 635 | $attachment_id = isset($data['attachment_id']) ? absint($data['attachment_id']) : 0; |
| 636 | 636 | if (0 === $attachment_id) return $this->image_not_found_response(); |
| 637 | 637 | |
| 638 | - $compressed = (bool) get_post_meta($attachment_id, 'smush-complete', true); | |
| 638 | + $compressed = (bool) get_post_meta($attachment_id, '_wpo-smush-complete', true); | |
| 639 | 639 | |
| 640 | 640 | $smush_options = Updraft_Smush_Manager()->get_smush_options(); |
| 641 | 641 | |
| 642 | 642 | $extract = array( |