• Resolved teleanu

    (@teleanu)


    Your plugin is causing this issue.

    [14-Jan-2022 18:24:16 UTC] The is_ajax function is deprecated since version 6.1.0. Replace with wp_doing_ajax.

    I always check if any error_log pop-up in my main folder and after I installed this plugin and clicked “ADD TO CART” button on any product (even one without addons in it) I get that ajax error.

    A fix will be super. Thank you!

    PS. I’m super sure that ur plugin is causing that error (tested before posting).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter teleanu

    (@teleanu)

    I changed this is_ajax with wp_doing_ajax in plugin-name/includes/class-yith-wapo-cart.php

    
    // Disable add_to_cart_button class on shop page.
    			if ( wp_doing_ajax() && ! isset( $_REQUEST['yith_wapo_is_single'] )
    

    insted of

    
    // Disable add_to_cart_button class on shop page.
    			if ( is_ajax() && ! isset( $_REQUEST['yith_wapo_is_single'] )
    

    And seams to work. I don’t get the error anymore. But still… This is a fast patch on my side. An update to your side is needed too.

    Thank you!

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    thank you for your contribute.
    Next version of the plugin will include needed changes about that in order to prevent the error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The is_ajax function is deprecated since version 6.1.’ is closed to new replies.