Plugin Directory

Changeset 3046035


Ignore:
Timestamp:
03/06/2024 03:04:34 AM (13 months ago)
Author:
devikas301
Message:

Fixed the city shortcode issue

Location:
show-visitor-ip
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • show-visitor-ip/trunk/readme.txt

    r2973344 r3046035  
    33Tags: ip address, country code, region, lat, long, city, country name, user IP, visitor IP, display, shortcode, vs, rockon
    44Requires at least: 3.0
    5 Tested up to: 6.3
     5Tested up to: 6.4.3
    66Stable tag: 1.0.01
    77License: GPLv2 or later
     
    4949* initial release
    5050
    51 = 5.1 - 30 September 2023 =
    52 * Optimized the coding for better performance.
    53 * Fixed the region name issue, not appearing with mobile internet.
     51= 5.2 - 06 March 2024 =
     52* Fixed the city shortcode issue.
    5453
    5554== Upgrade Notice ==
  • show-visitor-ip/trunk/show-visitor-ip.php

    r2973350 r3046035  
    55Description: This plgin show the current user ip address & other location info by ip. Short-code [show_ip], [svip_location type="countryCode"] regarding another shortcode please check the plugin readme file or visit on plugin website.
    66Author: Vikas Sharma
    7 Version: 5.1
     7Version: 5.2
    88Author URI: https://profiles.wordpress.org/devikas301
    99*/
     
    4545       
    4646        if($ip_data){       
    47          if($svip_ltype == 'countryCode'){
     47         if($svip_ltype == 'countryCode' || strpos($svip_ltype, 'countryCode') !== false){
    4848           $svip_data = $ip_data['countryCode'];
    49          } elseif($svip_ltype == 'region'){
     49         } elseif($svip_ltype == 'region' || strpos($svip_ltype, 'region') !== false){
    5050           $svip_data = $ip_data['regionName'];
    51          } elseif($svip_ltype == 'lat'){
     51         } elseif($svip_ltype == 'lat' || strpos($svip_ltype, 'lat') !== false){
    5252           $svip_data = $ip_data['lat'];
    53          } elseif($svip_ltype == 'long'){
     53         } elseif($svip_ltype == 'long' || strpos($svip_ltype, 'long') !== false){
    5454           $svip_data = $ip_data['lon'];
    55          } elseif($svip_ltype == 'city'){
     55         } elseif($svip_ltype == 'city' || strpos($svip_ltype, 'city') !== false){
    5656           $svip_data = $ip_data['city'];
    57          } elseif($svip_ltype == 'timeZone'){
     57         } elseif($svip_ltype == 'timeZone' || strpos($svip_ltype, 'timeZone') !== false){
    5858           $svip_data = $ip_data['timezone'];
    59          } elseif($svip_ltype == 'currency'){
     59         } elseif($svip_ltype == 'currency' || strpos($svip_ltype, 'currency') !== false){
    6060           $svip_data = $ip_data['currency'];
    6161         } else {
Note: See TracChangeset for help on using the changeset viewer.