Skip to content

Commit

Permalink
updated for wp6.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Apr 4, 2024
1 parent 10aa848 commit a812885
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
13 changes: 7 additions & 6 deletions cryptocurrency-payments-for-paid-memberships-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
// @phpcs:disable Generic.Files.InlineHTML

/**
* Plugin Name: Paid Memberships Pro - CryptoPay Gateway
* Version: 1.0.5
* Plugin Name: CryptoPay Gateway for Paid Memberships Pro
* Requires Plugins: paid-memberships-pro
* Version: 1.0.6
* Plugin URI: https://beycanpress.com/cryptopay/
* Description: Adds CryptoPay as a gateway option for Paid Memberships Pro.
* Author: BeycanPress LLC
Expand All @@ -21,7 +22,7 @@
* Text Domain: pmpro-cryptopay
* Tags: Cryptopay, Cryptocurrency, WooCommerce, WordPress, MetaMask, Trust, Binance, Wallet, Ethereum, Bitcoin, Binance smart chain, Payment, Plugin, Gateway, Moralis, Converter, API, coin market cap, CMC
* Requires at least: 5.0
* Tested up to: 6.4.2
* Tested up to: 6.5.0
* Requires PHP: 8.1
*/

Expand All @@ -33,7 +34,7 @@
use BeycanPress\CryptoPayLite\PluginHero\Hook as LiteHook;

define('PMPRO_CRYPTOPAY_FILE', __FILE__);
define('PMPRO_CRYPTOPAY_VERSION', '1.0.5');
define('PMPRO_CRYPTOPAY_VERSION', '1.0.6');
define('PMPRO_CRYPTOPAY_URL', plugin_dir_url(__FILE__));

register_activation_hook(PMPRO_CRYPTOPAY_FILE, function (): void {
Expand Down Expand Up @@ -106,7 +107,7 @@ function pmpro_cryptopay_check_discount_code(object &$level, ?string $discountCo
if (false == defined('PMPRO_DIR')) {
add_action('admin_notices', function (): void {
$class = 'notice notice-error';
$message = sprintf(esc_html__('Paid Memberships Pro - CryptoPay Gateway: This plugin is an extra feature plugin so it cannot do anything on its own. It needs Paid Memberships Pro to work. You can download Paid Memberships Pro by %s.', 'pmpro-cryptopay'), '<a href="https://wordpress.org/plugins/paid-memberships-pro/" target="_blank">' . esc_html__('clicking here', 'pmpro-cryptopay') . '</a>');
$message = sprintf(esc_html__('CryptoPay Gateway for Paid Memberships Pro: This plugin is an extra feature plugin so it cannot do anything on its own. It needs Paid Memberships Pro to work. You can download Paid Memberships Pro by %s.', 'pmpro-cryptopay'), '<a href="https://wordpress.org/plugins/paid-memberships-pro/" target="_blank">' . esc_html__('clicking here', 'pmpro-cryptopay') . '</a>');
printf('<div class="%1$s"><p>%2$s</p></div>', esc_attr($class), $message);
});
return;
Expand Down Expand Up @@ -164,7 +165,7 @@ function justShowForCryptoPay() {
add_action('admin_notices', function (): void {
?>
<div class="notice notice-error">
<p><?php echo sprintf(esc_html__('Paid Memberships Pro - CryptoPay Gateway: This plugin is an extra feature plugin so it cannot do anything on its own. It needs CryptoPay to work. You can buy CryptoPay by %s.', 'pmpro-cryptopay'), '<a href="https://beycanpress.com/cryptopay/?utm_source=wp_org_plugins&utm_medium=pmpro" target="_blank">' . esc_html__('clicking here', 'pmpro-cryptopay') . '</a>'); ?></p>
<p><?php echo sprintf(esc_html__('CryptoPay Gateway for Paid Memberships Pro: This plugin is an extra feature plugin so it cannot do anything on its own. It needs CryptoPay to work. You can buy CryptoPay by %s.', 'pmpro-cryptopay'), '<a href="https://beycanpress.com/cryptopay/?utm_source=wp_org_plugins&utm_medium=pmpro" target="_blank">' . esc_html__('clicking here', 'pmpro-cryptopay') . '</a>'); ?></p>
</div>
<?php
});
Expand Down
10 changes: 5 additions & 5 deletions languages/pmpro-cryptopay.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Paid Memberships Pro - CryptoPay Gateway\n"
"Project-Id-Version: CryptoPay Gateway for Paid Memberships Pro\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-01 05:06+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
Expand All @@ -13,7 +13,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Loco-Version: 2.6.6; wp-6.4.2\n"
"X-Loco-Version: 2.6.6; wp-6.5.0\n"
"X-Domain: pmpro-cryptopay"

#. Description of the plugin
Expand Down Expand Up @@ -65,21 +65,21 @@ msgid "Not found"
msgstr ""

#. Name of the plugin
msgid "Paid Memberships Pro - CryptoPay Gateway"
msgid "CryptoPay Gateway for Paid Memberships Pro"
msgstr ""

#: cryptocurrency-payments-for-paid-memberships-pro.php:167
#, php-format
msgid ""
"Paid Memberships Pro - CryptoPay Gateway: This plugin is an extra feature "
"CryptoPay Gateway for Paid Memberships Pro: This plugin is an extra feature "
"plugin so it cannot do anything on its own. It needs CryptoPay to work. You "
"can buy CryptoPay by %s."
msgstr ""

#: cryptocurrency-payments-for-paid-memberships-pro.php:109
#, php-format
msgid ""
"Paid Memberships Pro - CryptoPay Gateway: This plugin is an extra feature "
"CryptoPay Gateway for Paid Memberships Pro: This plugin is an extra feature "
"plugin so it cannot do anything on its own. It needs Paid Memberships Pro to "
"work. You can download Paid Memberships Pro by %s."
msgstr ""
Expand Down
11 changes: 7 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: BeycanPress
Tags: Bitcoin, Ethereum, Binance Smart Chain, Blockchain, Networks, Cryptocurrency, Payments, Gateway, WordPress, Paid Memberships Pro
Requires at least: 5.0
Tested up to: 6.4.2
Tested up to: 6.5.0
Requires PHP: 8.1
Stable Tag: 1.0.5
Version: 1.0.5
Stable Tag: 1.0.6
Version: 1.0.6
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -50,11 +50,14 @@ You can easily translate with Loco translate.
== Installation ==

1. Upload the entire `/cryptocurrency-payments-for-paid-memberships-pro` directory to the `/wp-content/plugins/` directory.
2. Activate Paid Memberships Pro - CryptoPay Gateway through the 'Plugins' menu in WordPress.
2. Activate CryptoPay Gateway for Paid Memberships Pro through the 'Plugins' menu in WordPress.
3. Enjoy.

== Changelog ==

= 1.0.6 =
* Updated: Compatibility due to updates for WordPress 6.5.0

= 1.0.5 =
* Updated: Compatibility due to updates in CryptoPay Lite 2.1.1

Expand Down

0 comments on commit a812885

Please sign in to comment.