From b5848c10e62f181ead9be0c40bc716db7969856d Mon Sep 17 00:00:00 2001 From: Zaxar163 <35835496+Zaxar163@users.noreply.github.com> Date: Mon, 5 Nov 2018 12:38:04 +0300 Subject: [PATCH] wordpress.php locale! --- compat/auth/wordpress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/auth/wordpress.php b/compat/auth/wordpress.php index 95ff2d01..04903cae 100644 --- a/compat/auth/wordpress.php +++ b/compat/auth/wordpress.php @@ -5,11 +5,11 @@ header("Content-Type: text/plain; charset=UTF-8"); $login = $_GET['login']; $password = $_GET['password']; if(empty($login) || empty($password)) { - exit('Empty login or password'); + exit('Введены неверные данные'); } // Try authenticate require_once('wp-load.php'); $user = wp_authenticate($login, $password); -echo($user instanceof WP_User ? 'OK:' . $user->user_login : 'Incorrect login or password'); +echo($user instanceof WP_User ? 'OK:' . $user->user_login : 'Ошибка при авторизации'); ?>