Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 0ae9698

Browse files
author
Matt Allan
authored
Display the parent order icon by default on the WooCommerce Orders list table (#827)
* Restore the parent order relation icon in WooCommerce > Orders list table * Add changelog entry
1 parent e12381a commit 0ae9698

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** WooCommerce Subscriptions Core Changelog ***
22

3+
= 8.1.1 - 2025-xx-xx =
4+
* Update - Display the subscriptions parent order icon in the WooCommerce Orders list table by default.
5+
36
= 8.1.0 - 2025-03-24 =
47
* Update - Improved subscription search performance for WP Post stores by removing unnecessary _order_key and _billing_email meta queries.
58
* Update - Make it possible to dispatch the Cancelled Subscription email more than once (when initially set to pending-cancellation, and again when it reaches final cancellation).

includes/class-wc-subscriptions-order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ private static function render_contains_subscription_column_content( $order ) {
24552455
echo '<span class="subscription_renewal_order tips" data-tip="' . esc_attr__( 'Renewal Order', 'woocommerce-subscriptions' ) . '"></span>';
24562456
} elseif ( wcs_order_contains_resubscribe( $order ) ) {
24572457
echo '<span class="subscription_resubscribe_order tips" data-tip="' . esc_attr__( 'Resubscribe Order', 'woocommerce-subscriptions' ) . '"></span>';
2458-
} elseif ( apply_filters( 'woocommerce_subscriptions_orders_list_render_parent_order_relation', false, $order ) && wcs_order_contains_parent( $order ) ) {
2458+
} elseif ( apply_filters( 'woocommerce_subscriptions_orders_list_render_parent_order_relation', true, $order ) && wcs_order_contains_parent( $order ) ) {
24592459
echo '<span class="subscription_parent_order tips" data-tip="' . esc_attr__( 'Parent Order', 'woocommerce-subscriptions' ) . '"></span>';
24602460
} else {
24612461
echo '<span class="normal_order">&ndash;</span>';

0 commit comments

Comments
 (0)