Making WordPress.org


Ignore:
Timestamp:
12/08/2022 01:08:44 AM (3 years ago)
Author:
dd32
Message:

HelpScout: When a displayed email has a customer assigned, and that customer has multiple emails assigned, try looking up their WordPress.org email address by those alternates.

This is common when plugin authors use an email forwarder such as me@company but email us from me.company@gmail.

File:
1 edited

Legend:

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

    r11946 r12307  
    1919        $html .= '<p>Profile: <a href="https://profiles.wordpress.org/' . $user->user_nicename . '/">'. $user->user_nicename .'</a></p>';
    2020        $html .= '<p>Forums: <a href="https://wordpress.org/support/users/'. $user->user_nicename . '/">'. $user->user_nicename .'</a></p>';
     21
     22        // When the Displayed account email doesn't match the email being displayed, output the user email address too.
     23        if ( ! empty( $request->customer->email ) && $request->customer->email !== $user->email ) {
     24            $html .= '<p>Account Email: ' . esc_html( $user->user_email ) . '</p>';
     25        }
    2126    } else {
    2227        $html .= '<p>No profile found</p>';
Note: See TracChangeset for help on using the changeset viewer.