Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
369a370,371
> load_plugin_textdomain( 'loginlockdown', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
>
390c392
< $error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.'));
---
> $error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.', 'loginlockdown') );
393c395
< $error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.'));
---
> $error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.', 'loginlockdown'));
401c403
< return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login')));
---
> return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?', 'loginlockdown'), site_url('wp-login.php?action=lostpassword', 'login')));
410c412
< return new WP_Error('incorrect_password', sprintf(__('<strong>ERROR</strong>: Incorrect password. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login')));
---
> return new WP_Error('incorrect_password', sprintf(__('<strong>ERROR</strong>: Incorrect password. <a href="%s" title="Password Lost and Found">Lost your password</a>?', 'loginlockdown'), site_url('wp-login.php?action=lostpassword', 'login')));
436c438
< $user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.'));
---
> $user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.', 'loginlockdown'));
446c448
< "failed login attempts.<br /><br />Please try again later."));
---
> "failed login attempts.<br /><br />Please try again later.", 'loginlockdown'));
449c451
< return new WP_Error('authentication_failed', sprintf(__('<strong>ERROR</strong>: Invalid username or incorrect password. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login')));
---
> return new WP_Error('authentication_failed', sprintf(__('<strong>ERROR</strong>: Invalid username or incorrect password. <a href="%s" title="Password Lost and Found">Lost your password</a>?', 'loginlockdown'), site_url('wp-login.php?action=lostpassword', 'login')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.