[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:37:34 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 fixed-major | Focuses:
------------------------------+----------------------
Changes (by azaozz):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"43157" 43157]:
{{{
#!CommitTicketReference repository="" revision="43157"
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.
Merges [43154] to the 4.9 branch.
Fixes #43931.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43931#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list