@@ -334,8 +334,9 @@ discard block |
||
| 334 | 334 | $user_details = get_user_by( 'email', $_REQUEST[ 'email' ] ); |
| 335 | 335 | $user_id = $user_details->ID; |
| 336 | 336 | |
| 337 | - if( $location == 'users.php?update=add&id=' . $user_id ) |
|
| 338 | - return add_query_arg( array( 'user_id' => $user_id ), 'user-edit.php' ); |
|
| 337 | + if( $location == 'users.php?update=add&id=' . $user_id ) { |
|
| 338 | + return add_query_arg( array( 'user_id' => $user_id ), 'user-edit.php' ); |
|
| 339 | + } |
|
| 339 | 340 | } |
| 340 | 341 | |
| 341 | 342 | return $location; |
@@ -529,8 +530,10 @@ discard block |
||
| 529 | 530 | $last_login = get_user_meta( $customer_post_author, 'last_login_time', true ); |
| 530 | 531 | if ( ! empty( $last_login ) ) : |
| 531 | 532 | echo mysql2date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $last_login, true ); |
| 532 | - else : |
|
| 533 | + else { |
|
| 534 | + : |
|
| 533 | 535 | _e( 'Never logged in', 'wpshop' ); |
| 536 | + } |
|
| 534 | 537 | endif; |
| 535 | 538 | $use_template = false; |
| 536 | 539 | break; |