Missing ) on order screen for customers select2
This commit is contained in:
parent
e075552604
commit
daf371052c
|
@ -222,7 +222,7 @@ class WC_Meta_Box_Order_Data {
|
|||
if ( ! empty( $order->customer_user ) ) {
|
||||
$user_id = absint( $order->customer_user );
|
||||
$user = get_user_by( 'id', $user_id );
|
||||
$user_string = esc_html( $user->display_name ) . ' (#' . absint( $user->ID ) . ' – ' . esc_html( $user->user_email );
|
||||
$user_string = esc_html( $user->display_name ) . ' (#' . absint( $user->ID ) . ' – ' . esc_html( $user->user_email ) . ')';
|
||||
}
|
||||
?>
|
||||
<input type="hidden" class="wc-customer-search" id="customer_user" name="customer_user" data-placeholder="<?php esc_attr_e( 'Guest', 'woocommerce' ); ?>" data-selected="<?php echo htmlspecialchars( $user_string ); ?>" value="<?php echo $user_id; ?>" data-allow_clear="true" />
|
||||
|
|
Loading…
Reference in New Issue