PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.0.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.0.0
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
← All changes | includes/Frontend/ActionController.php +6 -1 1.11.22.0.0 View file →
@@ -127,9 +127,14 @@
127 127 array(),
128 128 array( 'renew_subscrpt' => true )
129 129 );
130 130
131 - wc_add_notice( get_option( 'subscrpt_manual_renew_cart_notice' ), 'success' );
131 + // Empty unless the store set one, and wc_add_notice( '' ) renders an empty
132 + // green box rather than nothing, so only add it when there is a message.
133 + $cart_notice = subscrpt_get_manual_renew_cart_notice();
134 + if ( '' !== $cart_notice ) {
135 + wc_add_notice( $cart_notice, 'success' );
136 + }
132 137 $this->redirect( wc_get_cart_url() );
133 138 }
134 139
135 140 /**