From 61ce822bbbb6d442675c0b199070123dd749edf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Garc=C3=ADa?= <lucas@codeccoop.org> Date: Tue, 13 Feb 2024 09:09:35 +0100 Subject: [PATCH] feat: rename i18n dependencies --- includes/class-http-client.php | 2 +- wpct-http-backend.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-http-client.php b/includes/class-http-client.php index 588d4b1..b56be3b 100644 --- a/includes/class-http-client.php +++ b/includes/class-http-client.php @@ -147,7 +147,7 @@ class Http_Client private static function get_locale() { - $locale = apply_filters('wpct_st_current_language', null, 'locale'); + $locale = apply_filters('wpct_i18n_current_language', null, 'locale'); if ($locale) return $locale; return get_locale(); diff --git a/wpct-http-backend.php b/wpct-http-backend.php index 8880fd8..fc367ec 100755 --- a/wpct-http-backend.php +++ b/wpct-http-backend.php @@ -37,7 +37,7 @@ class Wpct_Http_Backend extends Abstract\Plugin protected $textdomain = 'wpct-http-backend'; protected $dependencies = [ 'JWT Authentication for WP-API' => '<a href="https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/">JWT Authentication for WP-API</a>', - 'Wpct String Translation' => '<a href="https://git.coopdevs.org/codeccoop/wp/wpct-string-translation/">Wpct String Translation</a>', + 'Wpct i18n' => '<a href="https://git.coopdevs.org/codeccoop/wp/wpct-string-translation/">Wpct String Translation</a>', ]; public static function activate() -- GitLab