Plugin Directory

Changeset 3170103


Ignore:
Timestamp:
10/16/2024 12:04:43 PM (16 months ago)
Author:
adscout
Message:

Hotfix of deletion of module action

Location:
adscout
Files:
51 added
3 edited

Legend:

Unmodified
Added
Removed
  • adscout/trunk/README.txt

    r3170090 r3170103  
    44Requires at least: 4.7
    55Tested up to: 6.6
    6 Stable tag: 2.2.4
     6Stable tag: 2.2.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4343
    4444== Changelog ==
     45
     46= 2.2.5 =
     47* Hotfix: fixed delete action
    4548
    4649= 2.2.4 =
  • adscout/trunk/includes/class-adscout-deactivator.php

    r3169961 r3170103  
    4040        }
    4141
     42        //delete feed if exists and the respective directory
     43        $option = (new AdScout_Options())::all_options();
     44
     45        if($option['as_feed_file_path'] and file_exists($option['as_feed_file_path'])) {
     46            //delete the feed file
     47            wp_delete_file($option['as_feed_file_path']);
     48            $file = new WP_Filesystem_Direct(false);
     49
     50
     51            //delete the feed directory
     52            $upload_dir = wp_upload_dir();
     53            $feed_dir = trailingslashit($upload_dir['basedir']) . 'as-product-feed';
     54            $file->rmdir($feed_dir, true);
     55        }
     56
     57        //delete the log file
     58        if(file_exists((new AdScout_Logger())->get_file())) {
     59            wp_delete_file((new AdScout_Logger())->get_file());
     60        }
     61
    4262    }
    4363
  • adscout/trunk/uninstall.php

    r3169961 r3170103  
    1212}
    1313
    14 //delete feed if exists and the respective directory
    15 $option = (new AdScout_Options())::all_options();
    16 
    17 if($option['as_feed_file_path'] and file_exists($option['as_feed_file_path'])) {
    18     //delete the feed file
    19     wp_delete_file($option['as_feed_file_path']);
    20     $file = new WP_Filesystem_Direct(false);
    21 
    22 
    23     //delete the feed directory
    24     $upload_dir = wp_upload_dir();
    25     $feed_dir = trailingslashit($upload_dir['basedir']) . 'as-product-feed';
    26     $file->rmdir($feed_dir, true);
    27 }
    28 
    29 //delete the log file
    30 if(file_exists((new AdScout_Logger())->get_file())) {
    31     wp_delete_file((new AdScout_Logger())->get_file());
    32 }
    33 
    3414//clear all options
    3515delete_option('as_integration_options');
     16delete_option('adscout_integration_options');
Note: See TracChangeset for help on using the changeset viewer.