From eeb8851717d9327f9151a3435f45323b2d3fa4a1 Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Mon, 21 Sep 2020 21:04:35 +0530 Subject: [PATCH] Minor fixups for PR #27734 --- includes/abstracts/abstract-wc-data.php | 4 ++-- includes/data-stores/class-wc-order-data-store-cpt.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/abstracts/abstract-wc-data.php b/includes/abstracts/abstract-wc-data.php index ff3eb4e4d91..2cb1b3b37f1 100644 --- a/includes/abstracts/abstract-wc-data.php +++ b/includes/abstracts/abstract-wc-data.php @@ -520,7 +520,7 @@ abstract class WC_Data { } /** - * Helper method to compute meta cache key. Different from WP Meta cache key. + * Helper method to compute meta cache key. Different from WP Meta cache key in that meta data cached using this key also contains meta_id column. * * @since 4.7.0 * @@ -528,7 +528,7 @@ abstract class WC_Data { */ public function get_meta_cache_key() { if ( ! $this->get_id() ) { - wc_doing_it_wrong( 'get_meta_cache_key', 'ID needs to be set before fetching a cache key.', '4.4.0' ); + wc_doing_it_wrong( 'get_meta_cache_key', 'ID needs to be set before fetching a cache key.', '4.7.0' ); return false; } return self::generate_meta_cache_key( $this->get_id(), $this->cache_group ); diff --git a/includes/data-stores/class-wc-order-data-store-cpt.php b/includes/data-stores/class-wc-order-data-store-cpt.php index 002dac8de02..0b3bebd81d7 100644 --- a/includes/data-stores/class-wc-order-data-store-cpt.php +++ b/includes/data-stores/class-wc-order-data-store-cpt.php @@ -971,7 +971,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement * Prime following caches: * 1. item-$order_item_id For individual items. * 2. order-items-$order-id For fetching items associated with an order. - * 3. (Optionally) order-item meta. + * 3. order-item meta. * * @param array $order_ids Order Ids to prime cache for. * @param array $query_vars Query vars for the query. @@ -1038,7 +1038,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement } /** - * Prime cache for raw meta data for orders in bulk. Difference between this and WP build in metadata is that this method also fetches `meta_id` field which we use and cache it. + * Prime cache for raw meta data for orders in bulk. Difference between this and WP built-in metadata is that this method also fetches `meta_id` field which we use and cache it. * * @param array $order_ids Order Ids to prime cache for. * @param array $query_vars Query vars for the query.