I fixed this by simply changing wp-content/plugins/ip-location-block/classes/class-ip-location-block-util.php
public static function is_user_logged_in() {
if ( null === $logged_in ) {
$logged_in = is_user_logged_in();
}
because:
check for: did_action( ‘init’ ) always returns false
and
The file ip-location-block\classes\class-ip-location-block-util.php
private static function validate_auth_cookie( $scheme = ‘logged_in’ )
returns false on hash_equals. The $hash is different. Unclear why.
if ( ! self::hash_equals( $hash, $hmac ) ) {
return $cache_user = false;
}
Just found that: classes/class-ip-location-block.php
public static function enqueue_nonce( $hook ) {
if ( ! IP_Location_Block_Util::is_user_logged_in() ) {
returns false, but I’m logged in and in the iplocationblock settings screen.
How can this be ?
regards.