Plugin Directory

Changeset 2471612


Ignore:
Timestamp:
02/09/2021 12:55:35 PM (5 years ago)
Author:
wecantrack
Message:

1.2.8

Location:
wecantrack
Files:
25 added
3 edited

Legend:

Unmodified
Added
Removed
  • wecantrack/trunk/WecantrackAdmin.php

    r2468989 r2471612  
    1919        $this->check_migrations();
    2020        $this->load_hooks();
     21
     22        $version = get_option('wecantrack_version');
     23        if ($api_key = get_option('wecantrack_api_key')) {
     24            if (empty($version) || $version !== WECANTRACK_VERSION) {
     25                $domainURL = WecantrackHelper::get_domain_of_site_url();
     26                WecantrackHelper::update_tracking_code($api_key, $domainURL);
     27                WecantrackHelper::update_user_website_information($api_key, $domainURL);
     28                update_option('wecantrack_version', WECANTRACK_VERSION);
     29            }
     30        }
    2131    }
    2232
     
    4757        if(!get_option('wecantrack_website_options')) {
    4858            add_option('wecantrack_website_options');
     59        }
     60        if(!get_option('wecantrack_version')) {
     61            add_option('wecantrack_version');
    4962        }
    5063    }
  • wecantrack/trunk/readme.txt

    r2468989 r2471612  
    55Tested up to: 5.6
    66Requires PHP: 5.6.20
    7 Stable tag: 1.2.7
     7Stable tag: 1.2.8
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    6060
    6161== Changelog ==
     62
     63= 1.2.8 - 9th February 2021 =
     64 * Update JS snippet when Plugin Updates. No need to click on Save on plugin update anymore.
    6265
    6366= 1.2.7 - 4th February 2021 =
  • wecantrack/trunk/wecantrack.php

    r2468989 r2471612  
    77Plugin URI: https://wecantrack.com/wordpress
    88Description: Integrate all you affiliate sales in Google Analytics, Google Ads, Facebook, Data Studio and more!
    9 Version: 1.2.7
     9Version: 1.2.8
    1010Author: wecantrack.com
    1111Author URI: https://wecantrack.com
     
    1717if(!defined('ABSPATH')) { die('You are not allowed to call this page directly.'); }
    1818
    19 define('WECANTRACK_VERSION', '1.2.7');
     19define('WECANTRACK_VERSION', '1.2.8');
    2020define('WECANTRACK_PLUGIN_NAME', 'wecantrack');
    2121define('WECANTRACK_PATH', WP_PLUGIN_DIR.'/'.WECANTRACK_PLUGIN_NAME);
     
    5555    add_option('wecantrack_redirect_options', null, null);
    5656    add_option('wecantrack_website_options', null, null);
     57    add_option('wecantrack_version', null, null);
    5758}
    5859
     
    7475    delete_option('wecantrack_redirect_options');
    7576    delete_option('wecantrack_website_options');
     77    delete_option('wecantrack_version');
    7678}
Note: See TracChangeset for help on using the changeset viewer.