You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classes/helpers/class-member-auth.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -183,10 +183,10 @@ public static function authenticate_username_password($member, $username, $passw
183
183
$error = newWP_Error();
184
184
185
185
if ( empty($username) ) {
186
-
$error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.'));
186
+
$error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.', 'mpt'));
187
187
}
188
188
if ( empty($password) ) {
189
-
$error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.'));
189
+
$error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.', 'mpt'));
190
190
}
191
191
192
192
return$error;
@@ -196,7 +196,7 @@ public static function authenticate_username_password($member, $username, $passw
196
196
$member->fill_by( 'username', $username );
197
197
198
198
if ( !$member->exists() ) {
199
-
returnnewWP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), mpt_get_lost_password_permalink() ) );
199
+
returnnewWP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?', 'mpt'), mpt_get_lost_password_permalink() ) );
@@ -205,7 +205,7 @@ public static function authenticate_username_password($member, $username, $passw
205
205
}
206
206
207
207
if ( !wp_check_password($password, $member->password, false) ) {
208
-
returnnewWP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' ),
208
+
returnnewWP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?', 'mpt' ),
0 commit comments