Wordfence – User Authentication Error Message

[ad_1]

Hello!

When a user enters an incorrect password on my website login, wordfence echo’s the following error message:

self::send_json(array('error' => wp_kses(sprintf(__('<strong>ERROR</strong>: The username or password you entered is incorrect. <a href="https://projectdmc.org/support/topic/wordfence-user-authentication-error-message/%s" title="Password Lost and Found">Lost your password</a>?', 'wordfence-2fa'), wp_lostpassword_url()), array('strong'=>array(), 'a'=>array('href'=>array(), 'title'=>array())))));

I’m trying to remove the “?” at the end of the returned error message.

Screenshot:

Link:

I don’t want to edit the ajax.php in wordfence as it will affect future plugin updates. Any advise on how i can resolve?

I tried removing it via:

  • display:none but since its being injected by the PHP file it didn’t work.
  • Via JavaScript; no luck as well.

Thank you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer