Merge pull request #5325 from gedex/refactor_cpt-shop_order_custom_columns
Removes unused block and var.
This commit is contained in:
commit
5274599e11
|
@ -242,26 +242,6 @@ class WC_Admin_CPT_Shop_Order extends WC_Admin_CPT {
|
||||||
$user_info = get_userdata( $the_order->user_id );
|
$user_info = get_userdata( $the_order->user_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! empty( $user_info ) ) {
|
|
||||||
|
|
||||||
$user = '<a href="user-edit.php?user_id=' . absint( $user_info->ID ) . '">';
|
|
||||||
|
|
||||||
if ( $user_info->first_name || $user_info->last_name ) {
|
|
||||||
$user .= esc_html( $user_info->first_name . ' ' . $user_info->last_name );
|
|
||||||
} else {
|
|
||||||
$user .= esc_html( $user_info->display_name );
|
|
||||||
}
|
|
||||||
|
|
||||||
$user .= '</a>';
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$user = __( 'Guest', 'woocommerce' );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $the_order->user_id ) {
|
|
||||||
$user_info = get_userdata( $the_order->user_id );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! empty( $user_info ) ) {
|
if ( ! empty( $user_info ) ) {
|
||||||
|
|
||||||
$username = '<a href="user-edit.php?user_id=' . absint( $user_info->ID ) . '">';
|
$username = '<a href="user-edit.php?user_id=' . absint( $user_info->ID ) . '">';
|
||||||
|
|
Loading…
Reference in New Issue