[wp-trac] [WordPress Trac] #43931: Use associative array instead of numeric for exporters and erasers
WordPress Trac
noreply at wordpress.org
Wed May 2 20:22:47 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:
------------------------------+---------------------
Comment (by allendav):
Replying to [comment:6 ocean90]:
> 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.
Good idea. Working this now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43931#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list