I am not sure if bug patches belong in this category. Please move it around as needed.
On line 58 of plugins/wp-fail2ban/feature/user-enum.php
XDebug catches the following error:
Exception has occurred. Notice: Undefined index: author
/**
* @since 4.0.5 Guard
*/
if (!function_exists(__NAMESPACE__ . '\\parse_request')) {
/**
* Catch traditional user enum
*
* @see \WP::parse_request()
*
* @since 3.5.0 Refactored for unit testing
* @since 2.1.0
*
* @param \WP $query
*
* @return \WP
*/
function parse_request($query)
{
if (!current_user_can('list_users') && intval(@$query->query_vars['author'])) {
_log_bail_user_enum();
}
return $query;
}
add_filter(
'parse_request',
__NAMESPACE__ . '\\parse_request',
1,
2
);
}
intval(@$query->query_vars['author'])
should be array_key_exists('author', @$query->query_vars)