Pass link to template file. Use cart URL to avoid redirects.

This commit is contained in:
Mike Jolley 2018-06-22 10:40:56 +01:00
parent 1f1d8734d0
commit 211ef53a53
1 changed files with 2 additions and 1 deletions

View File

@ -2429,7 +2429,8 @@ if ( ! function_exists( 'woocommerce_order_again_button' ) ) {
}
wc_get_template( 'order/order-again.php', array(
'order' => $order,
'order' => $order,
'order_again_url' => wp_nonce_url( add_query_arg( 'order_again', $order->get_id(), wc_get_cart_url() ), 'woocommerce-order_again' ),
) );
}
}