Plugin Directory

Changeset 3242887


Ignore:
Timestamp:
02/18/2025 10:33:39 PM (14 months ago)
Author:
osamaesh
Message:

Ensure $vtr_ip_address is properly initialized before usage to prevent undefined variable warnings.

Location:
visitors-traffic-real-time-statistics
Files:
422 added
3 edited

Legend:

Unmodified
Added
Removed
  • visitors-traffic-real-time-statistics/trunk/Visitors-Traffic-Real-Time-Statistics.php

    r3195934 r3242887  
    55Author: wp-buy
    66Author URI: https://www.wp-buy.com/
    7 Version: 7.7
     7Version: 7.8
    88Text Domain: visitors-traffic-real-time-statistics
    99Domain Path: /languages
  • visitors-traffic-real-time-statistics/trunk/WPHitsCounter.php

    r3195934 r3242887  
    372372            } else {
    373373
    374                 $ip_data = ahcfree_advanced_get_link("https://geoip-db.com/json/" . $vtr_ip_address);
     374                $ip_data = ahcfree_advanced_get_link("https://geoip-db.com/json/" . $this->ipAddress);
    375375
    376376                $ahc_city =  isset($ip_data->city) ? $ip_data->city : '';
     
    379379
    380380                if (empty($ip_data->country_code)) {
    381                     $ip_data = (ahcfree_advanced_get_link("http://www.geoplugin.net/json.gp?ip=" . $vtr_ip_address));
     381                    $ip_data = (ahcfree_advanced_get_link("http://www.geoplugin.net/json.gp?ip=" . $this->ipAddress));
    382382
    383383                    $this->countryInternetCode = isset($ip_data->geoplugin_countryCode) ? $ip_data->geoplugin_countryCode : '';
  • visitors-traffic-real-time-statistics/trunk/readme.txt

    r3242859 r3242887  
    44Requires at least: 3.0.1
    55Tested up to: 6.7.2
    6 Stable tag: 7.7
     6Stable tag: 7.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    184184== Changelog ==
    185185
     186= 7.8 =
     1871. Ensure $vtr_ip_address is properly initialized before usage to prevent undefined variable warnings.
     188
    186189= 7.7 =
    187190
Note: See TracChangeset for help on using the changeset viewer.