woocommerce-pfand icon indicating copy to clipboard operation
woocommerce-pfand copied to clipboard

display_deposit return false for ajax

Open megabait1212 opened this issue 7 years ago • 0 comments

Hi, Script return false when it's called from ajax. Please add a validation for Ajax in the method "display_deposit". Thank you

static function display_deposit() {
        $display = true;

        if (is_admin() && !wp_doing_ajax())
            return false;

        $display = apply_filters('display_deposit', $display);

        return $display;
    }

megabait1212 avatar Dec 13 '17 15:12 megabait1212