Commit 771a1a153d2 for woocommerce

commit 771a1a153d2819c522b69b23aa50c3a099b81d93
Author: Brandon Kraft <public@brandonkraft.com>
Date:   Fri Jul 24 09:23:07 2026 -0600

    Correct deferred order-item deletion version markers to 11.0.0 (#66904)

    The deferred order-item deletion work from PR #64326 shipped in 11.0.0
    (first tagged in 11.0.0-beta.1; it is not present in any 10.9.0 tag),
    but its version annotations were left at 10.9.0. Update the three since
    tags on the new properties and get_item_types_to_group() method, and the
    wc_doing_it_wrong() version argument on the remove_order_items() type
    guard, so the release markers match where the code actually landed.

    Documentation and debug-notice string only; no behavior change.

diff --git a/plugins/woocommerce/changelog/order-items-since-version-WOOPLUG-6799 b/plugins/woocommerce/changelog/order-items-since-version-WOOPLUG-6799
new file mode 100644
index 00000000000..09791f1f8f1
--- /dev/null
+++ b/plugins/woocommerce/changelog/order-items-since-version-WOOPLUG-6799
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Correct @since and wc_doing_it_wrong version markers for the deferred order-item deletion work to 11.0.0 (the release it shipped in); no production behavior change.
diff --git a/plugins/woocommerce/includes/abstracts/abstract-wc-order.php b/plugins/woocommerce/includes/abstracts/abstract-wc-order.php
index 02717210d99..b41c1b14361 100644
--- a/plugins/woocommerce/includes/abstracts/abstract-wc-order.php
+++ b/plugins/woocommerce/includes/abstracts/abstract-wc-order.php
@@ -98,7 +98,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * replacement items. Superseded by $bulk_delete_all_items_pending, which removes
 	 * every item type.
 	 *
-	 * @since 10.9.0
+	 * @since 11.0.0
 	 * @var array<string>
 	 */
 	protected $item_types_to_bulk_delete = array();
@@ -109,7 +109,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * Set by remove_order_items() when called with no type (so every item type
 	 * should be removed). Processed and reset in save_items().
 	 *
-	 * @since 10.9.0
+	 * @since 11.0.0
 	 * @var bool
 	 */
 	protected $bulk_delete_all_items_pending = false;
@@ -958,7 +958,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 				__METHOD__,
 				/* translators: %s: PHP type that was passed instead of a string. */
 				sprintf( esc_html__( 'remove_order_items() expects a string item type or null; received %s.', 'woocommerce' ), esc_html( gettype( $type ) ) ),
-				'10.9.0'
+				'11.0.0'
 			);
 			return;
 		}
@@ -1024,7 +1024,7 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
 	 * woocommerce_order_type_to_group filter so extension-registered types are
 	 * included.
 	 *
-	 * @since 10.9.0
+	 * @since 11.0.0
 	 * @return array<string, string>
 	 */
 	protected function get_item_types_to_group() {