Plugin Directory

Changeset 1994932


Ignore:
Timestamp:
12/14/2018 03:20:03 PM (7 years ago)
Author:
inveo
Message:

1.6.00 release

Location:
wp-integration/tags/1.6.00
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-integration/tags/1.6.00/wp-integration.php

    r1994882 r1994932  
    188188        add_action('admin_notices', array('Wpcon', 'no_required_wp'));
    189189    }
    190 } elseif(defined('THEMEPROVIDER_INIT') && !defined('XMLRPC_REQUEST') && !defined('REST_REQUEST') && !defined('WP_INSTALLING') && !wp_doing_ajax() && !wp_is_json_request()) {
     190} elseif(
     191    defined('THEMEPROVIDER_INIT') && !defined('XMLRPC_REQUEST') && !defined('REST_REQUEST') && !defined('WP_INSTALLING')
     192    && (
     193        (function_exists('wp_doing_ajax') && !wp_doing_ajax())
     194            ||
     195        (!function_exists('wp_doing_ajax') && !defined('DOING_AJAX'))
     196    )
     197    && (!function_exists('wp_is_json_request') || !wp_is_json_request())
     198) {
     199
     200    // DOING_AJAX
    191201    add_action('init', array('Wpcon', 'wpInit'));
    192202}
Note: See TracChangeset for help on using the changeset viewer.