PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/backups/components/handle-backups-removing.php +7 -3 1.0.0 → trunk View file →
@@ -1,11 +1,15 @@
1 1 <?php
2 2
3 -namespace ImageOptimizer\Modules\Backups\components;
3 +namespace ImageOptimization\Modules\Backups\Components;
4 4
5 -use ImageOptimizer\Classes\Async_Operation\Async_Operation_Hook;
6 -use ImageOptimizer\Classes\Image\Image_Backup;
5 +use ImageOptimization\Classes\Async_Operation\Async_Operation_Hook;
6 +use ImageOptimization\Classes\Image\Image_Backup;
7 7 use WP_Post;
8 +
9 +if ( ! defined( 'ABSPATH' ) ) {
10 + exit; // Exit if accessed directly.
11 +}
8 12
9 13 class Handle_Backups_Removing {
10 14 public function remove_backups_on_attachment_removing( int $attachment_id, WP_Post $attachment_post ) {
11 15 if ( ! wp_attachment_is_image( $attachment_post ) ) {