WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #44078


Ignore:
Timestamp:
05/14/2018 06:17:35 PM (18 months ago)
Author:
allendav
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44078 – Description

    initial v1  
    11In addition to the existing behavior of wp_privacy_anonymize_data( 'email', $email_address) which returns deleted@site.invalid, it would be useful, e.g. for debug logging to have another type that would return pseudonymized email addresses that retain a little bit of the original address, e.g.
    22
    3 my-mailbox@mailprovider.com.ca could be come m*********@****************.ca
     3{{{#!php
     4my-mailbox@mailprovider.com.ca
     5}}}
     6
     7could become something like
     8
     9{{{#!php
     10m*********@****************.ca
     11}}}
     12
    413
    514Where the number of * corresponds to the letters removed, and only the first letter of the email address and the TLD are retained.