• Resolved direwolfdesign

    (@direwolfdesign)


    The redirect function on line 909 of ip2location-redirection.php contains a case for preventing redirect of woocommerce ajax calls, however there is no case for the same call for WP Job Manager, this causes ajax requests in Job Manager to fail.

    The fix for this is identical to the fix for WooCommerce, adding the following code below the check for WooCommerce Ajax url’s prevents the Job Manager ajax calls from failing:

    
    if (isset($_SERVER['REQUEST_URI']) && preg_match('/jm-ajax/', $_SERVER['REQUEST_URI'])) {
        $this->write_debug_log('Result       : Redirection aborted. (Reason: Job Manager AJAX page)');
        $this->save_debug_log();
    
        return;
    }
    

    Hope this helps!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘IP2Location Redirection breaks WP Job Manager’ is closed to new replies.