diff --git a/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php b/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php index a39300e9679..3a6c40c73c4 100644 --- a/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php +++ b/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php @@ -1,6 +1,8 @@ output( $order ); }, $screen_id, @@ -247,7 +249,7 @@ class Edit { 'woocommerce-customer-history', __( 'Customer History', 'woocommerce' ), function( $post_or_order ) use ( $customer_history_meta_box ) { - $order = $post_or_order instanceof WC_Order ?: wc_get_order( $post_or_order ); + $order = $post_or_order instanceof WC_Order ? $post_or_order : wc_get_order( $post_or_order ); $customer_history_meta_box->output( $order ); }, $screen_id, diff --git a/plugins/woocommerce/src/Internal/RegisterHooksInterface.php b/plugins/woocommerce/src/Internal/RegisterHooksInterface.php new file mode 100644 index 00000000000..3c0d7f285d4 --- /dev/null +++ b/plugins/woocommerce/src/Internal/RegisterHooksInterface.php @@ -0,0 +1,20 @@ +