Go to file
Ian Dunn 4bb19e4aca 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@43154 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-03 19:27:14 +00:00
src Privacy: Store plugin callbacks in associative array for flexibility. 2018-05-03 19:27:14 +00:00
tests Privacy: Limit Privacy Settings screen to Super Admins in Multisite. 2018-05-03 17:24:35 +00:00
tools/i18n Remove the `svn:executable` property from files that don't need it. 2017-11-17 02:57:27 +00:00
.editorconfig General: Instruct file editors not to trim trailing whitespace in markdown files. 2018-03-20 22:14:53 +00:00
.gitignore Build/Test Tools: Remove `vendor` file name entry from `.gitignore`. 2018-02-25 11:29:25 +00:00
.jshintrc General: Remove `.jshintrc` and `*.json` from the 2-space-indent `.editorconfig` group. 2017-10-12 01:57:45 +00:00
.travis.yml BUILD/TEST TOOLS: Report Travis test results to make/hosting PHPUnit test results 2018-01-16 20:28:42 +00:00
Gruntfile.js Media: Update minified version of imgAreaSelect after [42874]. 2018-04-03 19:45:39 +00:00
composer.json Build Tools: Update the description in package.json and composer.json. 2018-04-05 07:15:25 +00:00
composer.lock Build Tools: Add a composer.json for development environments. 2018-04-05 07:04:08 +00:00
jsdoc.conf.json Docs: Improve wp-admin JSDoc structural data globally. 2017-12-15 13:41:56 +00:00
package.json Wow. I really shouldn't try to fix the build. 2018-04-19 00:25:52 +00:00
phpcs.xml.dist Build/Test Tools: Don't trigger the global variable override PHPCS sniff for core. 2018-04-28 00:44:50 +00:00
phpunit.xml.dist Build/Test Tools: Allow code coverage reports to be generated. 2018-02-07 22:20:25 +00:00
webpack.config.dev.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
webpack.config.prod.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:00:15 +00:00
wp-cli.yml
wp-config-sample.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wp-tests-config-sample.php Code is Poetry. 2017-11-30 23:09:33 +00:00