Created
May 9, 2018 14:44
-
-
Save AliceWonderMiscreations/b6acab93d03f73ba3b327aaebbf043e1 to your computer and use it in GitHub Desktop.
Admin privacy fix for WordPress
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
--- 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