Fix deprecated action messages
Don't end sentence with double .. and instead of "Replace with Use CRUD" just say "Replace with CRUD"
This commit is contained in:
parent
7e1dda6d92
commit
5e77311384
|
@ -213,17 +213,17 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
|
||||||
switch ( $item_group ) {
|
switch ( $item_group ) {
|
||||||
case 'fee_lines' :
|
case 'fee_lines' :
|
||||||
if ( isset( $item->legacy_fee, $item->legacy_fee_key ) ) {
|
if ( isset( $item->legacy_fee, $item->legacy_fee_key ) ) {
|
||||||
wc_do_deprecated_action( 'woocommerce_add_order_fee_meta', array( $this->get_id(), $item_id, $item->legacy_fee, $item->legacy_fee_key ), '2.7', 'Use CRUD and woocommerce_checkout_create_order_fee_item action instead.' );
|
wc_do_deprecated_action( 'woocommerce_add_order_fee_meta', array( $this->get_id(), $item_id, $item->legacy_fee, $item->legacy_fee_key ), '2.7', 'CRUD and woocommerce_checkout_create_order_fee_item action instead' );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'shipping_lines' :
|
case 'shipping_lines' :
|
||||||
if ( isset( $item->legacy_package_key ) ) {
|
if ( isset( $item->legacy_package_key ) ) {
|
||||||
wc_do_deprecated_action( 'woocommerce_add_shipping_order_item', array( $this->get_id(), $item_id, $item->legacy_package_key ), '2.7', 'Use CRUD woocommerce_checkout_create_order_shipping_item action instead.' );
|
wc_do_deprecated_action( 'woocommerce_add_shipping_order_item', array( $this->get_id(), $item_id, $item->legacy_package_key ), '2.7', 'CRUD woocommerce_checkout_create_order_shipping_item action instead' );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'line_items' :
|
case 'line_items' :
|
||||||
if ( isset( $item->legacy_values, $item->legacy_cart_item_key ) ) {
|
if ( isset( $item->legacy_values, $item->legacy_cart_item_key ) ) {
|
||||||
wc_do_deprecated_action( 'woocommerce_add_order_item_meta', array( $item_id, $item->legacy_values, $item->legacy_cart_item_key ), '2.7', 'Use CRUD and woocommerce_checkout_create_order_line_item action instead.' );
|
wc_do_deprecated_action( 'woocommerce_add_order_item_meta', array( $item_id, $item->legacy_values, $item->legacy_cart_item_key ), '2.7', 'CRUD and woocommerce_checkout_create_order_line_item action instead' );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue