[wp-trac] [WordPress Trac] #43931: Use associative array instead of numeric for exporters and erasers

WordPress Trac noreply at wordpress.org
Wed May 2 19:10:06 UTC 2018


#43931: Use associative array instead of numeric for exporters and erasers
------------------------------+---------------------
 Reporter:  desrosj           |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  high              |   Milestone:  4.9.6
Component:  General           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch gdpr  |     Focuses:
------------------------------+---------------------
Changes (by ocean90):

 * priority:  normal => high


Comment:

 The `wp_privacy_personal_data_erasure_page` filter should probably be
 changed to include the slug of the erasure instead of an arbitrary index
 number

 > Although plugins can continue to just push onto the exporter or eraser
 arrays in the filters, it would be better (for consistency) if they now
 used a slug,

 Since this is a new API we can and should enforce that. This would
 simplify some of the odd error messages like "index cannot be less than
 one." or "index is out of range".

 This should be solved before the first beta gets released.

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


More information about the wp-trac mailing list