Making WordPress.org


Ignore:
Timestamp:
05/10/2022 04:03:43 AM (3 years ago)
Author:
dd32
Message:

HelpScout: Show the correct user details for bounced emails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/profile.php

    r11296 r11823  
    88$html = '';
    99$user = false;
     10$email = get_user_email_for_email( $request );
    1011
    1112// Look up a user based on email address
    12 if ( isset ( $request->customer->email ) ) {
     13if ( $email ) {
    1314
    1415    // look up profile url by email
    15     $user = get_user_by( 'email', $request->customer->email );
     16    $user = get_user_by( 'email', $email );
     17
    1618    if ( isset( $user->user_nicename ) ) {
    1719        $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.