Plugin Directory

Changeset 3351305


Ignore:
Timestamp:
08/27/2025 02:56:37 PM (7 months ago)
Author:
nimbata
Message:

Updated plugin to version 1.7.3

Location:
nimbata-call-tracking
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • nimbata-call-tracking/tags/1.7.3/nimbata.php

    r3270915 r3351305  
    44Plugin URI: https://wordpress.org/plugins/nimbata-call-tracking/
    55Description: Dynamically swap your site's phone number with a nimbata tracking number. Track which sources or sessions make your phones ring. This plugin will use the configuration you've setup through the nimbata app.
    6 Version: 1.7.2
     6Version: 1.7.3
    77Author: Nimbata
    88Author URI: http://www.nimbata.com
     
    1111*/
    1212
    13 const VERSION = '1.7.2';
     13const VERSION = '1.7.3';
    1414
    1515function nimbata_admin_init() {
     
    8787
    8888      // Nonce is valid, now process the data
    89       if( isset($_POST['nimbata_dni_id_input']) && $_POST['nimbata_dni_id_input'] != '0' ) {
     89      if( isset($_POST['nimbata_dni_id_input']) && !empty($_POST['nimbata_dni_id_input']) ) {
    9090          // It's generally better to sanitize before saving
    9191          $dni_id = preg_replace('/\s+/', '', sanitize_text_field($_POST['nimbata_dni_id_input']));
    9292          update_option('nimbata_dni_id', $dni_id );
     93      } else {
     94          // If the field is empty or not set, update with a default/empty value.
     95          update_option('nimbata_dni_id', '0');
    9396      }
    9497
     
    97100          $sri_hash = preg_replace('/\s+/', '', sanitize_text_field($_POST['nimbata_dni_sri_input']));
    98101          update_option('nimbata_dni_sri', $sri_hash );
     102      } else {
     103          // If the field is empty or not set, clear the option.
     104          delete_option('nimbata_dni_sri');
    99105      }
    100106
  • nimbata-call-tracking/tags/1.7.3/readme.txt

    r3270915 r3351305  
    33Tags: call tracking, analytics, adwords, seo, ppc
    44Requires at least: 3.0
    5 Tested up to: 6.7.2
     5Tested up to: 6.8.2
    66Stable tag: 1.7.2
    77Requires PHP: 5.0.2
     
    2727
    2828== Changelog ==
     29
     30= 1.7.3 =
     31Tested with latest wordpress version & Cross-Site Request Forgery
    2932
    3033= 1.7.2 =
  • nimbata-call-tracking/trunk/nimbata.php

    r3270915 r3351305  
    44Plugin URI: https://wordpress.org/plugins/nimbata-call-tracking/
    55Description: Dynamically swap your site's phone number with a nimbata tracking number. Track which sources or sessions make your phones ring. This plugin will use the configuration you've setup through the nimbata app.
    6 Version: 1.7.2
     6Version: 1.7.3
    77Author: Nimbata
    88Author URI: http://www.nimbata.com
     
    1111*/
    1212
    13 const VERSION = '1.7.2';
     13const VERSION = '1.7.3';
    1414
    1515function nimbata_admin_init() {
     
    8787
    8888      // Nonce is valid, now process the data
    89       if( isset($_POST['nimbata_dni_id_input']) && $_POST['nimbata_dni_id_input'] != '0' ) {
     89      if( isset($_POST['nimbata_dni_id_input']) && !empty($_POST['nimbata_dni_id_input']) ) {
    9090          // It's generally better to sanitize before saving
    9191          $dni_id = preg_replace('/\s+/', '', sanitize_text_field($_POST['nimbata_dni_id_input']));
    9292          update_option('nimbata_dni_id', $dni_id );
     93      } else {
     94          // If the field is empty or not set, update with a default/empty value.
     95          update_option('nimbata_dni_id', '0');
    9396      }
    9497
     
    97100          $sri_hash = preg_replace('/\s+/', '', sanitize_text_field($_POST['nimbata_dni_sri_input']));
    98101          update_option('nimbata_dni_sri', $sri_hash );
     102      } else {
     103          // If the field is empty or not set, clear the option.
     104          delete_option('nimbata_dni_sri');
    99105      }
    100106
  • nimbata-call-tracking/trunk/readme.txt

    r3270915 r3351305  
    33Tags: call tracking, analytics, adwords, seo, ppc
    44Requires at least: 3.0
    5 Tested up to: 6.7.2
     5Tested up to: 6.8.2
    66Stable tag: 1.7.2
    77Requires PHP: 5.0.2
     
    2727
    2828== Changelog ==
     29
     30= 1.7.3 =
     31Tested with latest wordpress version & Cross-Site Request Forgery
    2932
    3033= 1.7.2 =
Note: See TracChangeset for help on using the changeset viewer.