Plugin Directory

Changeset 2837080


Ignore:
Timestamp:
12/21/2022 06:42:33 AM (3 years ago)
Author:
wecantrack
Message:

Release 1.4.3

Location:
wecantrack
Files:
27 added
6 edited

Legend:

Unmodified
Added
Removed
  • wecantrack/trunk/WecantrackAdmin.php

    r2778337 r2837080  
    126126        $referrer_cookie_status = sanitize_text_field($_POST['wecantrack_referrer_cookie_status']);
    127127        $ssl_status = sanitize_text_field($_POST['wecantrack_ssl_status']);
     128        $include_script = sanitize_text_field($_POST['wecantrack_include_script']);
    128129
    129130        if ($ssl_status == 0) {
     
    132133            unset($storage['disable_ssl']);
    133134        }
     135
     136        if ($include_script == 1) {
     137            $storage['include_script'] = true;
     138        } else if ($include_script == 0) {
     139            $storage['include_script'] = false;
     140        }
     141
    134142        update_option('wecantrack_storage', json_encode($storage));
    135143
  • wecantrack/trunk/WecantrackApp.php

    r2778337 r2837080  
    175175    public function load_hooks() {
    176176        add_filter('wp_redirect', array($this, 'redirect_default'), 99);
    177         add_action('wp_head', array($this, 'insert_snippet'));
     177        $storage = json_decode(get_option('wecantrack_storage'));
     178
     179        if (!isset($storage->include_script) || $storage->include_script === true) {
     180            add_action('wp_head', array($this, 'insert_snippet'));
     181        }
    178182    }
    179183
  • wecantrack/trunk/readme.txt

    r2796693 r2837080  
    55Tested up to: 5.9.2
    66Requires PHP: 5.6.20
    7 Stable tag: 1.4.2
     7Stable tag: 1.4.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    6161== Changelog ==
    6262
     63= 1.4.3 - 21st December 2022 =
     64* New option to disable wct.js script
     65
    6366= 1.4.2 - 10th October 2022 =
    6467* Made thrive page builder detection pattern more greedy
    6568
    66 = 1.4.2 - 31st August 2022 =
     69= 1.4.1 - 31st August 2022 =
    6770* Improved affiliate url pattern matching
    6871
  • wecantrack/trunk/views/advanced_settings.php

    r2622887 r2837080  
    1515$wecantrack_ssl_status_enabled = empty($wecantrack_storage['disable_ssl']) ? 'checked="checked"' : null;
    1616$wecantrack_ssl_status_disabled = !empty($wecantrack_storage['disable_ssl']) ? 'checked="checked"' : null;
     17
     18$wecantrack_include_script_enabled = empty($wecantrack_storage['include_script']) ? 'checked="checked"' : null;
     19$wecantrack_include_script_disabled = !empty($wecantrack_storage['include_script']) ? 'checked="checked"' : null;
    1720?>
    1821
     
    3134            <table class="form-table" role="presentation">
    3235                <tbody>
     36
     37                <tr class="wecantrack-include-script">
     38                    <th scope="row">
     39                        <label for=""><?php echo esc_html__('Include WCT Script', 'wecantrack'); ?></label>
     40                    </th>
     41
     42                    <td>
     43                        <fieldset>
     44                            <p>
     45                                <label>
     46                                    <input name="wecantrack_include_script" type="radio" value="1" <?php echo $wecantrack_include_script_enabled ?>>
     47                                    <?php echo esc_html__('Enable', 'wecantrack'); ?>
     48                                </label>
     49                                &nbsp;
     50                                <label>
     51                                    <input name="wecantrack_include_script" type="radio" value="0" <?php echo $wecantrack_include_script_disabled ?>>
     52                                    <?php echo esc_html__('Disable', 'wecantrack'); ?>
     53                                </label>
     54                            </p>
     55                        </fieldset>
     56
     57                        <p class="description">The wct.js file will be included automatically by the plugin, or you can choose to disable this option and include it yourself.</b></p>
     58                    </td>
     59                </tr>
     60
    3361                <tr class="wecantrack-plugin-status">
    3462                    <th scope="row">
  • wecantrack/trunk/wecantrack.php

    r2796693 r2837080  
    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.4.2
     9Version: 1.4.3
    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.4.2');
     19define('WECANTRACK_VERSION', '1.4.3');
    2020define('WECANTRACK_PLUGIN_NAME', 'wecantrack');
    2121define('WECANTRACK_PATH', WP_PLUGIN_DIR.'/'.WECANTRACK_PLUGIN_NAME);
  • wecantrack/trunk/wecantrack.pot

    r2796693 r2837080  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WeCanTrack 1.4.2\n"
     5"Project-Id-Version: WeCanTrack 1.4.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wecantrack\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-10-10T14:13:54+00:00\n"
     12"POT-Creation-Date: 2022-12-21T06:33:48+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    3535msgstr ""
    3636
    37 #: views/advanced_settings.php:35
    38 msgid "Use WCT referrer cookie"
     37#: views/advanced_settings.php:39
     38msgid "Include WCT Script"
    3939msgstr ""
    4040
    41 #: views/advanced_settings.php:43
    42 #: views/advanced_settings.php:67
     41#: views/advanced_settings.php:47
     42#: views/advanced_settings.php:71
     43#: views/advanced_settings.php:95
    4344#: views/redirect_page.php:51
    4445#: views/settings.php:79
     
    4647msgstr ""
    4748
    48 #: views/advanced_settings.php:48
    49 #: views/advanced_settings.php:72
     49#: views/advanced_settings.php:52
     50#: views/advanced_settings.php:76
     51#: views/advanced_settings.php:100
    5052#: views/redirect_page.php:56
    5153#: views/settings.php:84
     
    5355msgstr ""
    5456
    55 #: views/advanced_settings.php:59
     57#: views/advanced_settings.php:63
     58msgid "Use WCT referrer cookie"
     59msgstr ""
     60
     61#: views/advanced_settings.php:87
    5662msgid "Verify SSL"
    5763msgstr ""
    5864
    59 #: views/advanced_settings.php:85
     65#: views/advanced_settings.php:113
    6066#: views/redirect_page.php:104
    6167#: views/settings.php:109
     
    139145msgstr ""
    140146
    141 #: WecantrackAdmin.php:239
     147#: WecantrackAdmin.php:247
    142148msgid "Something went wrong with the request"
    143149msgstr ""
    144150
    145 #: WecantrackAdmin.php:240
     151#: WecantrackAdmin.php:248
    146152msgid "Added at least 1 active network account"
    147153msgstr ""
    148154
    149 #: WecantrackAdmin.php:241
     155#: WecantrackAdmin.php:249
    150156msgid "You have not added at least 1 active network account. To add a network, click here."
    151157msgstr ""
    152158
    153 #: WecantrackAdmin.php:244
     159#: WecantrackAdmin.php:252
    154160msgid "verified"
    155161msgstr ""
    156162
    157 #: WecantrackAdmin.php:245
     163#: WecantrackAdmin.php:253
    158164msgid "Invalid API Key"
    159165msgstr ""
    160166
    161 #: WecantrackAdmin.php:246
     167#: WecantrackAdmin.php:254
    162168msgid "Invalid Request"
    163169msgstr ""
    164170
    165 #: WecantrackAdmin.php:247
     171#: WecantrackAdmin.php:255
    166172msgid "Valid API Key"
    167173msgstr ""
    168174
    169 #: WecantrackAdmin.php:248
     175#: WecantrackAdmin.php:256
    170176msgid "Your changes have been saved"
    171177msgstr ""
    172178
    173 #: WecantrackAdmin.php:249
     179#: WecantrackAdmin.php:257
    174180msgid "Something went wrong."
    175181msgstr ""
Note: See TracChangeset for help on using the changeset viewer.