Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AliceWonderMiscreations/b6acab93d03f73ba3b327aaebbf043e1 to your computer and use it in GitHub Desktop.
Save AliceWonderMiscreations/b6acab93d03f73ba3b327aaebbf043e1 to your computer and use it in GitHub Desktop.
Admin privacy fix for WordPress
--- class-wp-community-events.php.orig 2018-05-09 14:36:12.923805278 +0000
+++ class-wp-community-events.php 2018-05-09 14:41:16.751253745 +0000
@@ -52,7 +52,7 @@
*/
public function __construct( $user_id, $user_location = false ) {
$this->user_id = absint( $user_id );
- $this->user_location = $user_location;
+ //$this->user_location = $user_location;
}
/**
@@ -233,6 +233,7 @@
* or false on failure.
*/
public static function get_unsafe_client_ip() {
+ return false;
$client_ip = $netmask = false;
$ip_prefix = '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment