Wordpress user.php override

It seems that just copying the user.php in a child theme doesn’t override the information I want to post. I simply want to replace the text in this line:

__( '<strong>ERROR</strong>: The password you entered for the email address %s is incorrect.' ),
				'<strong>' . $email . '</strong>'

To:

__( '<strong>ERROR</strong>: The email or password you entered is incorrect. Please try again.' ),
				'<strong>' . $email . '</strong>'

Any reason why copying a wp-includes/user.php file in a child theme doesn’t work?

Hi toad78, it may be that you are getting an error due to the extra argument after the comma. In the original ‘%s’ is a symbol for an argument to be swapped for what follows the comma, i.e. the value of the $email variable inside strong tags. Since you removed %s you need to remove the argument value as well. Try deleting from the comma to the end

1 Like

Thank you for responding, dottie!
I’ll give it a go!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.