Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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