Missing ) on order screen for customers select2

This commit is contained in:
Claudio Sanches 2015-09-18 12:21:51 -03:00
parent e075552604
commit daf371052c
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class WC_Meta_Box_Order_Data {
if ( ! empty( $order->customer_user ) ) { if ( ! empty( $order->customer_user ) ) {
$user_id = absint( $order->customer_user ); $user_id = absint( $order->customer_user );
$user = get_user_by( 'id', $user_id ); $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" /> <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" />