• Resolved jcastillo1

    (@jcastillo1)


    quicklink/plugin-compatibility/woocommerce.php

    
        // Do not preload the cart, as it is usally ressource heavy.
        $wc_ignores[] = '^' . preg_quote( $woocommerce->cart->get_cart_url(), '/' );
     
        // Do not preload the checkout url for the same reason as above.
        $wc_ignores[] = '^' . preg_quote( $woocommerce->cart->get_checkout_url(), '/' );
     
    

    would be:

    
     $wc_ignores[] = '^' . preg_quote( wc_get_cart_url(), '/' );
    
     $wc_ignores[] = '^' . preg_quote( wc_get_checkout_url(), '/' );
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jcastillo1

    (@jcastillo1)

    same:

    
     // Do not preload the 'Payment' page, as it is usually ressource heavy.
        if ( woocommerce_get_page_id( 'pay' ) ) {
            $wc_ignores[] = '^' . preg_quote( get_permalink( woocommerce_get_page_id( 'pay' ) ), '/' );
        }
    
    
    Plugin Author Hendrik Luehrsen

    (@luehrsen)

    Hey @jcastillo1,

    we have just pushed an update that should address this problem.

    The deprecated functions have been replaced by non-deprecated ones.

    Thank you for your suggestion!

    Are you using Query Monitor when testing this plugin?

    0.7.0 triggers:

    Notice wc_get_page_id was called with an argument that is deprecated since version 2.1! The “pay” and “thanks” pages are no-longer used – an endpoint is added to the checkout instead. To get a valid link use the WC_Order::get_checkout_payment_url() or WC_Order::get_checkout_order_received_url() methods instead.

    Did you replace some deprecated functions with other deprecated functions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated functions `WC_Cart::get_cart_url` and WC_Cart::get_checkout_url’ is closed to new replies.