Created
October 26, 2017 13:21
-
-
Save lukecav/cd2292e45cfe9973530fed569c496e7c to your computer and use it in GitHub Desktop.
Stop WordPress sending anything but essential data during the update check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wp_update_privacy( $query ) { | |
unset($query['php']); | |
unset($query['mysql']); | |
unset($query['local_package']); | |
unset($query['blogs']); | |
unset($query['users']); | |
unset($query['multisite_enabled']); | |
unset($query['initial_db_version']); | |
return $query; | |
} | |
add_action( 'core_version_check_query_args', 'wp_update_privacy' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/mattradford/update-privacy/blob/master/update-privacy.php
https://core.trac.wordpress.org/ticket/16778
core_version_check_query_args