| @@ -112,9 +112,9 @@ | ||
| 112 | 112 | $start_date = $subscription_data['start_date'] ?? ''; |
| 113 | 113 | $start_date = ! empty( $start_date ) ? wp_date( 'F j, Y', strtotime( $start_date ) ) : '-'; |
| 114 | 114 | |
| 115 | 115 | $next_date = $subscription_data['next_date'] ?? ''; |
| 116 | - $next_date = ! empty( $next_date ) && Helper::has_next_payment( $status ) ? wp_date( 'F j, Y', strtotime( $next_date ) ) : '-'; | |
| 116 | + $next_date = ! empty( $next_date ) ? wp_date( 'F j, Y', strtotime( $next_date ) ) : '-'; | |
| 117 | 117 | |
| 118 | 118 | $trial = get_post_meta( $id, '_subscrpt_trial', true ); |
| 119 | 119 | $trial_mode = get_post_meta( $id, '_subscrpt_trial_mode', true ); |
| 120 | 120 | |
| @@ -210,13 +210,8 @@ | ||
| 210 | 210 | unset( $action_buttons['cancel'] ); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | $action_buttons = apply_filters( 'subscrpt_single_action_buttons', $action_buttons, $id, $subscrpt_nonce, $status ); |
| 214 | - | |
| 215 | - // Nothing renews once a subscription has ended, so drop the auto-renewal toggle — Pro adds it through the filter too. | |
| 216 | - if ( ! Helper::has_next_payment( $status ) ) { | |
| 217 | - unset( $action_buttons['auto-renew-on'], $action_buttons['auto-renew-off'] ); | |
| 218 | - } | |
| 219 | 214 | |
| 220 | 215 | wc_get_template( |
| 221 | 216 | 'myaccount/single.php', |
| 222 | 217 | array( |