Hi @denis24,
Thank you for reporting the issue, I was able to replicate the problem and will report it to the development team for review.
I’ve created a function that you can use until it’s fixed to target the IP address of the users that you want to exclude from the maintenance mode, you can add this code to the functions.php file of your theme:
function wpmm_exclude_IP_address($ip) {
$ip = 'undefined';
if (isset($_SERVER)) {
$ip = $_SERVER['REMOTE_ADDR'];
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
}
} else {
$ip = getenv('REMOTE_ADDR');
if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
} elseif (getenv('HTTP_CLIENT_IP')) {
$ip = getenv('HTTP_CLIENT_IP');
}
}
$ip = htmlspecialchars($ip, ENT_QUOTES, 'UTF-8');
if ($ip == '0.0.0.0') {
return true;
}
return false;
}
add_filter('wpmm_is_excluded', 'wpmm_exclude_IP_address', 10, 1);
Of course, please change the 0.0.0.0 in the code to the IP address that you want to exclude.
I hope it helps!