[wp-trac] [WordPress Trac] #43931: Use associative array instead of numeric for exporters and erasers
WordPress Trac
noreply at wordpress.org
Thu May 3 19:27:16 UTC 2018
#43931: Use associative array instead of numeric for exporters and erasers
------------------------------------------+----------------------
Reporter: desrosj | Owner: iandunn
Type: enhancement | Status: closed
Priority: high | Milestone: 4.9.6
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: gdpr has-patch needs-testing | Focuses:
------------------------------------------+----------------------
Changes (by iandunn):
* owner: (none) => iandunn
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"43154" 43154]:
{{{
#!CommitTicketReference repository="" revision="43154"
Privacy: Store plugin callbacks in associative array for flexibility.
The personal data export and erasure tools allow plugins to register their
own callbacks, in order to add additional data to the export and erasure
processes. Previously, these were registered without specifying a constant
identifier in the array of callbacks. Using mutable integers makes it
difficult for plugins to modify the callbacks of other plugins, though.
Using associative array keys instead provides a covenient and reliable way
to identify and interact with another plugin's callbacks.
Props desrosj, allendav, ocean90.
Fixes #43931.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43931#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list