Changeset 12842
- Timestamp:
- 08/15/2023 02:12:34 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/common.php
r12757 r12842 247 247 if ( $user ) { 248 248 return $user; 249 } 250 251 // If the email is a plus address, try without. This is common with auto-responders it seems. 252 if ( str_contains( $maybe_email, '+' ) ) { 253 $maybe_email = preg_replace( '/[+].+@/', '@', $maybe_email ); 254 $user = get_user_by( 'email', $maybe_email ); 255 if ( $user ) { 256 return $user; 257 } 249 258 } 250 259 }
Note: See TracChangeset
for help on using the changeset viewer.