Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Forked from lukecav/functions.php
Created October 27, 2017 18:43
Show Gist options
  • Save bhubbard/7b49e316e76ea4d6b8aad490be936224 to your computer and use it in GitHub Desktop.
Save bhubbard/7b49e316e76ea4d6b8aad490be936224 to your computer and use it in GitHub Desktop.
Stop WordPress sending anything but essential data during the update check
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