Plugin Directory

Changeset 3450473


Ignore:
Timestamp:
01/30/2026 01:16:31 PM (8 weeks ago)
Author:
ip2location
Message:

Disabled redirection for WP-CLI.

Location:
ip2location-redirection/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ip2location-redirection/trunk/ip2location-redirection.php

    r3444439 r3450473  
    55 * Plugin URI: https://ip2location.com/resources/wordpress-ip2location-redirection
    66 * Description: Redirect visitors by their country.
    7  * Version: 1.37.0
     7 * Version: 1.38.0
    88 * Requires PHP: 7.4
    99 * Author: IP2Location
     
    17461746    public function redirect()
    17471747    {
     1748        // Disable redirection for WP-CLI
     1749        if (defined('WP_CLI') && WP_CLI) {
     1750            return;
     1751        }
     1752
    17481753        // Disable redirection on admin pages
    17491754        if (is_admin() && $this->get_option('skip_admins')) {
  • ip2location-redirection/trunk/readme.txt

    r3444439 r3450473  
    55Requires at least: 4.6
    66Tested up to: 6.9
    7 Stable tag: 1.37.0
     7Stable tag: 1.38.0
    88
    99Redirects visitors to a blog page or a predefined URL based on their country and region geolocated using IP address.
     
    6363
    6464== Changelog ==
     65* 1.38.0 Disabled redirection for WP-CLI.
    6566* 1.37.0 Updated to the latest version of IP2Location library.
    6667* 1.36.1 Fixed implicit conversion of mask to int.
Note: See TracChangeset for help on using the changeset viewer.