Plugin Directory

Changeset 3036400


Ignore:
Timestamp:
02/15/2024 03:34:11 PM (2 years ago)
Author:
as247
Message:

Fix is_ajax not defined

Location:
wordpress-2-step-verification/2.x
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wordpress-2-step-verification/2.x/includes/Wp2sv_Force.php

    r3002854 r3036400  
    1616    }
    1717    function handle(){
    18         if($this->isEnabledForce() && !is_ajax()){
     18        if($this->isEnabledForce() && !$this->is_ajax()){
    1919            if($this->mode==='popup'|| $this->mode==='notice'){
    2020                $this->handlePopup();
     
    2323            }
    2424        }
     25    }
     26    protected function is_ajax(){
     27        return function_exists( 'wp_doing_ajax' ) ? wp_doing_ajax() : (defined( 'DOING_AJAX' ) && DOING_AJAX);
    2528    }
    2629    function handleRedirect(){
  • wordpress-2-step-verification/2.x/readme.txt

    r3002865 r3036400  
    6363
    6464== Changelog ==
     65= 2.6.1 =
     66* Fix is_ajax not defined
    6567
    6668= 2.6.0 =
  • wordpress-2-step-verification/2.x/wordpress-2-step-verification.php

    r3002854 r3036400  
    55 * Description: Wordpress 2-Step Verification adds an extra layer of security to your Wordpress Account. In addition to your username and password, you'll enter a code that generated by Android/iPhone/Blackberry app or Plugin will send you via email upon signing in.
    66 * Author: as247
    7  * Version: 2.6.0
     7 * Version: 2.6.1
    88 * Author URI: https://tinyinstaller.top/
    99 * Compatibility: WordPress 4.0
     
    2020    define('PHP_INT_MIN', ~PHP_INT_MAX);
    2121}
    22 define('WP2SV_VERSION','2.6.0');
     22define('WP2SV_VERSION','2.6.1');
    2323define('WP2SV_ABSPATH', dirname(__FILE__) . '/');
    2424define('WP2SV_INC', WP2SV_ABSPATH . 'includes');
Note: See TracChangeset for help on using the changeset viewer.