Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56090, comment 2


Ignore:
Timestamp:
06/29/2022 08:39:54 PM (2 years ago)
Author:
petercwiley
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56090, comment 2

    initial v1  
    44function boardmc_remove_slashes_in_email( $raw_user_email ) {
    55  if ( str_contains( $raw_user_email, '\\' ) ) {
    6     $unslashed_user_email = stripslashes( $raw_user_email );
     6    $raw_user_email = stripslashes( $raw_user_email );
    77  }
    8   return $unslashed_user_email;
     8  return $raw_user_email;
    99}
    1010add_filter( 'pre_user_email', 'boardmc_remove_slashes_in_email', 10, 1 );