PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.1.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.1.0
2.4.0 2.3.0 2.2.0 2.1.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 All 65 releases
← All changes | includes/Admin/views/subscription-details.php +4 -4 2.4.0 → 2.1.0 View file →
@@ -68,11 +68,9 @@
68 68 /* translators: %s: Subscription ID */
69 69 : sprintf( __( 'Subscription #%s', 'subscription' ), $subscription_id );
70 70
71 71 $next_payment_date = $subscription_data['next_date'] ?? '';
72 -$next_payment_date = ! empty( $next_payment_date ) && Helper::has_next_payment( $subscription_data['status'] ?? '' )
73 - ? wp_date( get_option( 'date_format' ), strtotime( $next_payment_date ) )
74 - : '';
72 +$next_payment_date = ! empty( $next_payment_date ) ? wp_date( get_option( 'date_format' ), strtotime( $next_payment_date ) ) : '';
75 73
76 74 $header_badge = '<span class="wpsubs-badge wpsubs-badge--' . esc_attr( $badge_mod ) . '">' . esc_html( $verbose_status );
77 75 if ( $is_grace_period && $grace_remaining > 0 ) {
78 76 /* translators: %d: days remaining */
@@ -141,9 +139,11 @@
141 139 }
142 140 // Always show the Next Payment tile; dash when there is no next date.
143 141 $summary_tiles[] = array(
144 142 'label' => __( 'Next Payment', 'subscription' ),
145 - 'value' => $next_payment_date ? esc_html( $next_payment_date ) : '-',
143 + 'value' => ! empty( $subscription_data['next_date'] )
144 + ? esc_html( wp_date( get_option( 'date_format' ), strtotime( $subscription_data['next_date'] ) ) )
145 + : '-',
146 146 );
147 147 // Total payments is not part of $subscription_data; pull it from the info rows.
148 148 if ( isset( $rows['total_payments'] ) ) {
149 149 $summary_tiles[] = array(