fork from https://wordpress.org/plugins/register-plus-redux/