[wp-trac] [WordPress Trac] #44676: Support comma-seperated list for Privacy Requests

WordPress Trac noreply at wordpress.org
Thu Mar 7 23:31:43 UTC 2019


#44676: Support comma-seperated list for Privacy Requests
-------------------------------------------------+-------------------------
 Reporter:  garrett-eclipse                      |       Owner:  garrett-
                                                 |  eclipse
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.2
Component:  Privacy                              |     Version:  4.9.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots needs-testing ux-    |     Focuses:  privacy
  feedback ui-feedback needs-refresh             |
-------------------------------------------------+-------------------------

Comment (by birgire):

 The {{{wp_parse_list()}}} would become handy here to parse a comma
 separated string into an array, ignoring white space chars and empty
 strings:

 https://developer.wordpress.org/reference/functions/wp_parse_list/

 See also #43977.

 There's also {{{wp_parse_slug_list()}}} but that uses
 {{{sanitize_title()}}} that avoids duplicates.

 Here's an example, that additionally removes duplicates:

 {{{
 $usernames_or_email_addresses = array_unique( wp_parse_list(
 $username_or_email_for_privacy_request ) );
 }}}


 Few things that come additionally to mind:

 - Should there be a limitation, like 10 or 50? I'm not so sure this new
 feature should allow sending unlimited number of email requests at once,
 out of the box.

 - Should there be a filterable limit in place?

 - Additionally there might be email rate limitations (outside of
 WordPress) to avoid possible spam emails.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44676#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list