- Timestamp:
- 05/10/2022 04:03:43 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/profile.php
r11296 r11823 8 8 $html = ''; 9 9 $user = false; 10 $email = get_user_email_for_email( $request ); 10 11 11 12 // Look up a user based on email address 12 if ( isset ( $request->customer->email )) {13 if ( $email ) { 13 14 14 15 // look up profile url by email 15 $user = get_user_by( 'email', $request->customer->email ); 16 $user = get_user_by( 'email', $email ); 17 16 18 if ( isset( $user->user_nicename ) ) { 17 19 $html .= '<p>Profile: <a href="https://profiles.wordpress.org/' . $user->user_nicename . '/">'. $user->user_nicename .'</a></p>';
Note: See TracChangeset
for help on using the changeset viewer.