| @@ -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 | /** |