mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-14 05:12:56 +00:00
2.2.7
This commit is contained in:

committed by
Remco Tolsma

parent
5e536ec717
commit
b99eba2f79
@@ -22,8 +22,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
*/
|
||||
function wcs_order_contains_resubscribe( $order ) {
|
||||
|
||||
if ( ! is_object( $order ) ) {
|
||||
$order = new WC_Order( $order );
|
||||
if ( ! is_a( $order, 'WC_Abstract_Order' ) ) {
|
||||
$order = wc_get_order( $order );
|
||||
}
|
||||
|
||||
if ( wcs_get_objects_property( $order, 'subscription_resubscribe' ) ) {
|
||||
@@ -138,7 +138,7 @@ function wcs_cart_contains_resubscribe( $cart = '' ) {
|
||||
*/
|
||||
function wcs_get_subscriptions_for_resubscribe_order( $order ) {
|
||||
|
||||
if ( ! is_object( $order ) ) {
|
||||
if ( ! is_a( $order, 'WC_Abstract_Order' ) ) {
|
||||
$order = wc_get_order( $order );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user