Skip to content

Commit

Permalink
Updates to 1.11.24
Browse files Browse the repository at this point in the history
  • Loading branch information
MemberPress committed Jan 18, 2024
1 parent e7459ca commit 011f41f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 34 deletions.
1 change: 1 addition & 0 deletions app/gateways/MeprAuthorizeProfileGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public function process_single_order($txn, $dataValue, $dataDescriptor) {
}

$txn->save();
MeprHooks::do_action('mepr-auth-net-subscription-initialized', $txn);
}

MeprUtils::send_signup_notices($txn);
Expand Down
38 changes: 19 additions & 19 deletions i18n/memberpress.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the MemberPress plugin.
msgid ""
msgstr ""
"Project-Id-Version: MemberPress 1.11.23\n"
"Project-Id-Version: MemberPress 1.11.24\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/memberpress\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-01-15T23:52:09-07:00\n"
"POT-Creation-Date: 2024-01-17T12:55:43-07:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Domain: memberpress\n"
Expand Down Expand Up @@ -3571,8 +3571,8 @@ msgstr ""
#: app/gateways/MeprArtificialGateway.php:402
#: app/gateways/MeprAuthorizeGateway.php:1026
#: app/gateways/MeprAuthorizeGateway.php:1257
#: app/gateways/MeprAuthorizeProfileGateway.php:487
#: app/gateways/MeprAuthorizeProfileGateway.php:643
#: app/gateways/MeprAuthorizeProfileGateway.php:488
#: app/gateways/MeprAuthorizeProfileGateway.php:644
#: app/gateways/MeprPayPalProGateway.php:901
#: app/gateways/MeprPayPalProGateway.php:1093
#: app/gateways/MeprStripeGateway.php:2742
Expand Down Expand Up @@ -3655,8 +3655,8 @@ msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:723
#: app/gateways/MeprAuthorizeGateway.php:727
#: app/gateways/MeprAuthorizeProfileGateway.php:511
#: app/gateways/MeprAuthorizeProfileGateway.php:515
#: app/gateways/MeprAuthorizeProfileGateway.php:512
#: app/gateways/MeprAuthorizeProfileGateway.php:516
msgid "Your payment details are invalid, please check them and try again."
msgstr ""

Expand All @@ -3680,7 +3680,7 @@ msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:965
#: app/gateways/MeprAuthorizeGateway.php:1204
#: app/gateways/MeprAuthorizeProfileGateway.php:590
#: app/gateways/MeprAuthorizeProfileGateway.php:591
#: app/gateways/MeprPayPalProGateway.php:829
#: app/gateways/MeprPayPalProGateway.php:1047
msgid "Credit Card Number"
Expand All @@ -3693,31 +3693,31 @@ msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:984
#: app/gateways/MeprAuthorizeGateway.php:1221
#: app/gateways/MeprAuthorizeProfileGateway.php:607
#: app/gateways/MeprAuthorizeProfileGateway.php:608
#: app/gateways/MeprPayPalProGateway.php:848
#: app/gateways/MeprPayPalProGateway.php:1064
msgid "Expiration"
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:985
#: app/gateways/MeprAuthorizeGateway.php:1222
#: app/gateways/MeprAuthorizeProfileGateway.php:608
#: app/gateways/MeprAuthorizeProfileGateway.php:609
#: app/gateways/MeprPayPalProGateway.php:849
#: app/gateways/MeprPayPalProGateway.php:1065
msgid "Invalid Expiration"
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1010
#: app/gateways/MeprAuthorizeGateway.php:1240
#: app/gateways/MeprAuthorizeProfileGateway.php:626
#: app/gateways/MeprAuthorizeProfileGateway.php:627
#: app/gateways/MeprPayPalProGateway.php:867
#: app/gateways/MeprPayPalProGateway.php:1083
msgid "CVC"
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1011
#: app/gateways/MeprAuthorizeGateway.php:1241
#: app/gateways/MeprAuthorizeProfileGateway.php:627
#: app/gateways/MeprAuthorizeProfileGateway.php:628
#: app/gateways/MeprPayPalProGateway.php:868
#: app/gateways/MeprPayPalProGateway.php:1084
msgid "Invalid CVC Code"
Expand All @@ -3739,23 +3739,23 @@ msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1082
#: app/gateways/MeprAuthorizeGateway.php:1271
#: app/gateways/MeprAuthorizeProfileGateway.php:657
#: app/gateways/MeprAuthorizeProfileGateway.php:658
#: app/gateways/MeprPayPalProGateway.php:942
#: app/gateways/MeprPayPalProGateway.php:1107
msgid "You must enter your Credit Card number."
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1085
#: app/gateways/MeprAuthorizeGateway.php:1273
#: app/gateways/MeprAuthorizeProfileGateway.php:659
#: app/gateways/MeprAuthorizeProfileGateway.php:660
#: app/gateways/MeprPayPalProGateway.php:945
#: app/gateways/MeprPayPalProGateway.php:1109
msgid "Your credit card number is invalid."
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1089
#: app/gateways/MeprAuthorizeGateway.php:1276
#: app/gateways/MeprAuthorizeProfileGateway.php:662
#: app/gateways/MeprAuthorizeProfileGateway.php:663
#: app/gateways/MeprPayPalProGateway.php:949
#: app/gateways/MeprPayPalProGateway.php:1112
msgid "You must enter your CVV code."
Expand Down Expand Up @@ -3817,25 +3817,25 @@ msgid "Signature Key field cannot be blank."
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1201
#: app/gateways/MeprAuthorizeProfileGateway.php:587
#: app/gateways/MeprAuthorizeProfileGateway.php:588
#: app/gateways/MeprPayPalProGateway.php:1044
msgid "Update your Credit Card information below"
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1248
#: app/gateways/MeprAuthorizeProfileGateway.php:634
#: app/gateways/MeprAuthorizeProfileGateway.php:635
#: app/views/checkout/MeprAuthorizeGateway/payment_gateway_fields.php:14
msgid "Zip code for Card"
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1256
#: app/gateways/MeprAuthorizeProfileGateway.php:642
#: app/gateways/MeprAuthorizeProfileGateway.php:643
#: app/gateways/MeprPayPalProGateway.php:1092
msgid "Update Credit Card"
msgstr ""

#: app/gateways/MeprAuthorizeGateway.php:1268
#: app/gateways/MeprAuthorizeProfileGateway.php:654
#: app/gateways/MeprAuthorizeProfileGateway.php:655
#: app/gateways/MeprPayPalProGateway.php:1104
msgid "An unknown error has occurred. Please try again."
msgstr ""
Expand All @@ -3859,7 +3859,7 @@ msgstr ""
msgid "Public Key*:"
msgstr ""

#: app/gateways/MeprAuthorizeProfileGateway.php:486
#: app/gateways/MeprAuthorizeProfileGateway.php:487
#: app/gateways/MeprPayPalCommerceGateway.php:1055
#: app/gateways/MeprStripeGateway.php:2741
#: app/gateways/MeprStripeGateway.php:2913
Expand Down
9 changes: 5 additions & 4 deletions js/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,21 @@ var mpValidateFieldNotBlank = function($field) {
if(!$field.is(':visible')) {
// Pass validation on fields that are not visible
}
else if ($field.is('input') || $field.is('select') || $field.is('textarea')) {
else if ($field.is('input') || $field.is('select') && !$field.hasClass('mepr-multi-select-field') || $field.is('textarea')) {
notBlank = mpValidateNotBlank($field.val());
}
else if ($field.hasClass('mepr-checkbox-field')) {
notBlank = $field.find('input').is(':checked');
}
else if ($field.hasClass('mepr-radios-field') || $field.hasClass('mepr-checkboxes-field')) {
else if ($field.hasClass('mepr-radios-field') || $field.hasClass('mepr-checkboxes-field') || $field.hasClass('mepr-multi-select-field')) {
var input_vals = [];
var selector = $field.hasClass('mepr-multi-select-field') ? 'option:selected' : 'input:checked';

$field.find('input:checked').each(function (i, obj) {
$field.find(selector).each(function (i, obj) {
input_vals.push(true);
});

notBlank = mpValidateNotBlank(input_vals);
notBlank = input_vals.length > 0;
}

return notBlank;
Expand Down
2 changes: 1 addition & 1 deletion memberpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: MemberPress Pro 30 (Legacy)
Plugin URI: http://www.memberpress.com/
Description: The membership plugin that makes it easy to accept payments for access to your content and digital products.
Version: 1.11.23
Version: 1.11.24
Author: Caseproof, LLC
Author URI: http://caseproof.com/
Text Domain: memberpress
Expand Down
2 changes: 1 addition & 1 deletion vendor-prefixed/caseproof/growth-tools/src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class App
*
* @var Config
*/
protected Config $config;
protected $config;

/**
* Constructor.
Expand Down
18 changes: 9 additions & 9 deletions vendor-prefixed/caseproof/growth-tools/src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,63 +15,63 @@ class Config
*
* @var string
*/
protected string $instanceId;
protected $instanceId;

/**
* The path to the plugin main file.
*
* @var string
*/
protected string $file;
protected $file;

/**
* The plugin path.
*
* @var string
*/
protected string $path;
protected $path;

/**
* The menu path.
*
* @var string
*/
protected string $menuSlug;
protected $menuSlug;

/**
* The full URL to the plugin's assets path.
*
* @var string
*/
protected string $assetsUrl;
protected $assetsUrl;

/**
* Denotes the slug of the admin menu's parent menu.
*
* @var string
*/
protected string $parentMenuSlug = 'tools.php';
protected $parentMenuSlug = 'tools.php';

/**
* List of css classes for action buttons.
*
* @var string[]
*/
protected array $buttonCSSClasses;
protected $buttonCSSClasses;

/**
* Base URl for images
*
* @var string
*/
protected string $imageBaseUrl = 'https://cspf-growth-tools.s3.us-east-2.amazonaws.com/img';
protected $imageBaseUrl = 'https://cspf-growth-tools.s3.us-east-2.amazonaws.com/img';

/**
* Url to configuration file
*
* @var string
*/
protected string $configFileUrl = 'https://cspf-growth-tools.s3.us-east-2.amazonaws.com/tools.json';
protected $configFileUrl = 'https://cspf-growth-tools.s3.us-east-2.amazonaws.com/tools.json';

/**
* Constructor
Expand Down

0 comments on commit 011f41f

Please sign in to comment.