- Timestamp:
- 11/11/2025 06:51:51 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/profile.php
r12608 r14599 28 28 $html .= '<p>Account Email: ' . esc_html( $user->user_email ) . '</p>'; 29 29 } 30 31 if ( in_array( 'bbp_blocked', $user->wporg_419_capabilities ?? [], true ) ) { 32 $html .= '<p><strong>Forums Status: BLOCKED</strong></p>'; 33 } elseif ( in_array( 'bbp_spectator', $user->wporg_419_capabilities ?? [], true ) ) { 34 $html .= '<p><strong>Forums Status: Spectator</strong></p>'; 35 } 30 36 } else { 31 37 $html .= '<p>No profile found</p>'; 38 } 39 40 $gmail_dotless = $request->customer->email; 41 if ( str_ends_with( strtolower( $gmail_dotless ), '@gmail.com' ) ) { 42 $gmail_dotless = str_replace( '.', '', strstr( $gmail_dotless, '@', true ) ) . '@gmail.com'; 32 43 } 33 44 … … 35 46 $records = $wpdb->get_results( $wpdb->prepare( 36 47 "SELECT * FROM {$wpdb->base_prefix}user_pending_registrations 37 WHERE user_email = %s OR user_email LIKE %s",48 WHERE user_email = %s OR user_email = %s OR user_email LIKE %s", 38 49 $request->customer->email, 50 $gmail_dotless, 39 51 str_replace( '@', '+%@', $wpdb->esc_like( $request->customer->email ) ) // Handle plus addressing. 40 52 ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)