Plugin Directory

Changeset 3443508


Ignore:
Timestamp:
01/20/2026 07:03:40 PM (2 months ago)
Author:
leadfox
Message:

Fixed bug where plugin could interfere with other plugins using common POST variable names

Location:
leadfox
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • leadfox/tags/2.2.4/leadfox.php

    r3397626 r3443508  
    22/**
    33 * Plugin Name: Leadfox
    4  * Version: 2.2.3
     4 * Version: 2.2.4
    55 * Author: Leadfox
    66 * Description: Leadfox converts visitors into ripe leads and paying customers.
     
    3232    define("LF_DELETE", "DELETE");
    3333
     34    // Only process form submissions on our admin page
     35    if (!is_admin() || !isset($_GET['page']) || $_GET['page'] !== 'leadfox-menu') {
     36        return;
     37    }
     38
    3439    // Main
    35     if (leadfox_post("submit") !== null) leadfox_update_options();
    36     if (leadfox_post("sync") !== null) leadfox_sync_contacts();
     40    if (leadfox_post("leadfox_submit") !== null) leadfox_update_options();
     41    if (leadfox_post("leadfox_sync") !== null) leadfox_sync_contacts();
    3742}
    3843
     
    284289
    285290            <div>
    286                 <button type="submit" name="submit"><?php _e("Submit") ?></button>
     291                <button type="submit" name="leadfox_submit"><?php _e("Submit") ?></button>
    287292            </div>
    288293
     
    290295            <label><?php _e("Sync all contacts now") ?></label>
    291296            <div>
    292                 <button type="submit" name="sync"><?php _e("Sync") ?></button>
     297                <button type="submit" name="leadfox_sync"><?php _e("Sync") ?></button>
    293298            </div>
    294299        </form>
  • leadfox/tags/2.2.4/readme.txt

    r3397626 r3443508  
    44Requires at least: 3.7
    55Tested up to: 6.8.3
    6 Stable tag: 2.2.3
     6Stable tag: 2.2.4
    77License: GPLv2 or later
    88
     
    3939
    4040== Changelog ==
     41
     42= 2.2.4 =
     43Fixed bug where plugin could interfere with other plugins using common POST variable names.
    4144
    4245= 2.2.3 =
  • leadfox/trunk/leadfox.php

    r3397626 r3443508  
    22/**
    33 * Plugin Name: Leadfox
    4  * Version: 2.2.3
     4 * Version: 2.2.4
    55 * Author: Leadfox
    66 * Description: Leadfox converts visitors into ripe leads and paying customers.
     
    3232    define("LF_DELETE", "DELETE");
    3333
     34    // Only process form submissions on our admin page
     35    if (!is_admin() || !isset($_GET['page']) || $_GET['page'] !== 'leadfox-menu') {
     36        return;
     37    }
     38
    3439    // Main
    35     if (leadfox_post("submit") !== null) leadfox_update_options();
    36     if (leadfox_post("sync") !== null) leadfox_sync_contacts();
     40    if (leadfox_post("leadfox_submit") !== null) leadfox_update_options();
     41    if (leadfox_post("leadfox_sync") !== null) leadfox_sync_contacts();
    3742}
    3843
     
    284289
    285290            <div>
    286                 <button type="submit" name="submit"><?php _e("Submit") ?></button>
     291                <button type="submit" name="leadfox_submit"><?php _e("Submit") ?></button>
    287292            </div>
    288293
     
    290295            <label><?php _e("Sync all contacts now") ?></label>
    291296            <div>
    292                 <button type="submit" name="sync"><?php _e("Sync") ?></button>
     297                <button type="submit" name="leadfox_sync"><?php _e("Sync") ?></button>
    293298            </div>
    294299        </form>
  • leadfox/trunk/readme.txt

    r3397626 r3443508  
    44Requires at least: 3.7
    55Tested up to: 6.8.3
    6 Stable tag: 2.2.3
     6Stable tag: 2.2.4
    77License: GPLv2 or later
    88
     
    3939
    4040== Changelog ==
     41
     42= 2.2.4 =
     43Fixed bug where plugin could interfere with other plugins using common POST variable names.
    4144
    4245= 2.2.3 =
Note: See TracChangeset for help on using the changeset viewer.