I got an notice, when developing with WP_DEBUG on true, so I added an isset check on $_REQUEST['rest_route']
on line 143 / 144
$call_rest_api_v2 = preg_match($regex_api_v2, $_SERVER['REQUEST_URI']) || ( isset( $_REQUEST['rest_route'] ) && preg_match($regex_api_v2, $_REQUEST['rest_route'] ) );
$call_rest_api_v1 = preg_match($regex_api_v1, $_SERVER['REQUEST_URI']) || ( isset( $_REQUEST['rest_route'] ) && preg_match($regex_api_v2, $_REQUEST['rest_route'] ) );
Else it returns a notice.
]]>I have tracked down a “Forbidden” error within WP All Import plugin to be a conflict with No User Enumeration. Having looked at the code it would appear that the No User Enumeration plugin is applying its blocking to the Admin area. It should not at the very least not apply if the user is logged in as an Admin or Super Admin user. Please can you resolve this bug.
]]>