From 0644c5b08cce6dc897cd487c8d6ac588b3b45362 Mon Sep 17 00:00:00 2001 From: BeycanDeveloper Date: Thu, 28 Nov 2024 14:49:10 +0300 Subject: [PATCH] text domain warning --- cryptopay-gateway-for-armember.php | 12 +++++++----- readme.txt | 9 ++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/cryptopay-gateway-for-armember.php b/cryptopay-gateway-for-armember.php index dfebd37..572f17b 100644 --- a/cryptopay-gateway-for-armember.php +++ b/cryptopay-gateway-for-armember.php @@ -11,7 +11,7 @@ /** * Plugin Name: CryptoPay Gateway for ARMember - * Version: 1.0.0 + * Version: 1.0.1 * Plugin URI: https://beycanpress.com/cryptopay/ * Description: Adds Cryptocurrency payment gateway (CryptoPay) for ARMember. * Author: BeycanPress LLC @@ -21,7 +21,7 @@ * Text Domain: arm-cryptopay * Tags: Bitcoin, Ethereum, Crypto, Payment, ARMember * Requires at least: 5.0 - * Tested up to: 6.6 + * Tested up to: 6.7.1 * Requires PHP: 8.1 */ @@ -29,7 +29,7 @@ require_once __DIR__ . '/vendor/autoload.php'; define('ARM_CRYPTOPAY_FILE', __FILE__); -define('ARM_CRYPTOPAY_VERSION', '1.0.0'); +define('ARM_CRYPTOPAY_VERSION', '1.0.1'); define('ARM_CRYPTOPAY_KEY', basename(__DIR__)); define('ARM_CRYPTOPAY_URL', plugin_dir_url(__FILE__)); define('ARM_CRYPTOPAY_DIR', plugin_dir_path(__FILE__)); @@ -48,13 +48,15 @@ function armCryptoPayRegisterModels(): void armCryptoPayRegisterModels(); -load_plugin_textdomain('arm-cryptopay', false, basename(__DIR__) . '/languages'); +add_action('init', function (): void { + load_plugin_textdomain('arm-cryptopay', false, basename(__DIR__) . '/languages'); +}); add_action('plugins_loaded', function (): void { armCryptoPayRegisterModels(); if (!defined('MEMBERSHIPLITE_DIR_NAME')) { - Helpers::requirePluginMessage('ARMember', 'https://wordpress.org/plugins/armember-membership/'); + Helpers::requirePluginMessage('ARMember', admin_url('plugin-install.php?s=armember&tab=search&type=term')); } elseif (Helpers::bothExists()) { new BeycanPress\CryptoPay\ARM\Loader(); } else { diff --git a/readme.txt b/readme.txt index b67e6a3..53fb602 100644 --- a/readme.txt +++ b/readme.txt @@ -2,10 +2,10 @@ Contributors: BeycanPress Tags: Bitcoin, Ethereum, Crypto, Payment, ARMember Requires at least: 5.0 -Tested up to: 6.6 +Tested up to: 6.7.1 Requires PHP: 8.1 -Stable Tag: 1.0.0 -Version: 1.0.0 +Stable Tag: 1.0.1 +Version: 1.0.1 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -50,5 +50,8 @@ You can easily translate with Loco translate. == Changelog == += 1.0.1 = +* Fixed: Text domain warning. + = 1.0.0 = * Plugin released.