Paid Memberships Pro - Version 1.8.13.6

Version Description

  • BUG: Fixed bug where credit card expiration emails would be sent to users with PayPal Express orders.
  • BUG: Fixed bug when updating billing with Stripe.
  • BUG: Fixed bug where the archive/search filter was not running for logged out users.
  • ENHANCEMENT: Updated Finnish translations. (Thanks, JP Jakonen)
  • ENHANCEMENT: Added filter for modifying the order description in Stripe. (Thanks, Rafe Colton)
Download this release

Release Info

Developer strangerstudios
Plugin Icon 128x128 Paid Memberships Pro
Version 1.8.13.6
Comparing to
See all releases

Code changes from version 1.8.13.5 to 1.8.13.6

classes/gateways/class.pmprogateway_stripe.php CHANGED
@@ -125,6 +125,7 @@
125
add_action('pmpro_checkout_preheader', array('PMProGateway_stripe', 'pmpro_checkout_preheader'));
126
add_action('pmpro_billing_preheader', array('PMProGateway_stripe', 'pmpro_checkout_preheader'));
127
add_filter('pmpro_checkout_order', array('PMProGateway_stripe', 'pmpro_checkout_order'));
128
add_filter('pmpro_include_billing_address_fields', array('PMProGateway_stripe', 'pmpro_include_billing_address_fields'));
129
add_filter('pmpro_include_cardtype_field', array('PMProGateway_stripe', 'pmpro_include_billing_address_fields'));
130
add_filter('pmpro_include_payment_information_fields', array('PMProGateway_stripe', 'pmpro_include_payment_information_fields'));
@@ -1188,7 +1189,7 @@
1188
"amount" => $amount * $currency_unit_multiplier, # amount in cents, again
1189
"currency" => strtolower($pmpro_currency),
1190
"customer" => $this->customer->id,
1191
- "description" => "Order #" . $order->code . ", " . trim($order->FirstName . " " . $order->LastName) . " (" . $order->Email . ")"
1192
)
1193
);
1194
}
125
add_action('pmpro_checkout_preheader', array('PMProGateway_stripe', 'pmpro_checkout_preheader'));
126
add_action('pmpro_billing_preheader', array('PMProGateway_stripe', 'pmpro_checkout_preheader'));
127
add_filter('pmpro_checkout_order', array('PMProGateway_stripe', 'pmpro_checkout_order'));
128
+ add_filter('pmpro_billing_order', array('PMProGateway_stripe', 'pmpro_checkout_order'));
129
add_filter('pmpro_include_billing_address_fields', array('PMProGateway_stripe', 'pmpro_include_billing_address_fields'));
130
add_filter('pmpro_include_cardtype_field', array('PMProGateway_stripe', 'pmpro_include_billing_address_fields'));
131
add_filter('pmpro_include_payment_information_fields', array('PMProGateway_stripe', 'pmpro_include_payment_information_fields'));
1189
"amount" => $amount * $currency_unit_multiplier, # amount in cents, again
1190
"currency" => strtolower($pmpro_currency),
1191
"customer" => $this->customer->id,
1192
+ "description" => apply_filters('pmpro_stripe_order_description', "Order #" . $order->code . ", " . trim($order->FirstName . " " . $order->LastName) . " (" . $order->Email . ")", $order)
1193
)
1194
);
1195
}
includes/content.php CHANGED
@@ -151,8 +151,7 @@ function pmpro_search_filter($query)
151
}
152
153
//hide member pages from non-members (make sure they aren't hidden from members)
154
- if(function_exists('is_user_logged_in') && is_user_logged_in() &&
155
- !$query->is_admin &&
156
!$query->is_singular &&
157
empty($query->query['post_parent']) &&
158
(
@@ -162,7 +161,10 @@ function pmpro_search_filter($query)
162
)
163
{
164
//get page ids that are in my levels
165
- $levels = pmpro_getMembershipLevelsForUser($current_user->ID);
166
$my_pages = array();
167
$member_pages = array();
168
151
}
152
153
//hide member pages from non-members (make sure they aren't hidden from members)
154
+ if(!$query->is_admin &&
155
!$query->is_singular &&
156
empty($query->query['post_parent']) &&
157
(
161
)
162
{
163
//get page ids that are in my levels
164
+ if(!empty($current_user->ID))
165
+ $levels = pmpro_getMembershipLevelsForUser($current_user->ID);
166
+ else
167
+ $levels = false;
168
$my_pages = array();
169
$member_pages = array();
170
languages/pmpro-fi.mo CHANGED
Binary file
languages/pmpro-fi.po CHANGED
@@ -1802,12 +1802,12 @@ msgstr ""
1802
#: classes/gateways/class.pmprogateway_stripe.php:388 pages/checkout.php:494
1803
#, php-format
1804
msgid "We Accept %s"
1805
- msgstr ""
1806
1807
#: classes/gateways/class.pmprogateway_braintree.php:283
1808
#: classes/gateways/class.pmprogateway_stripe.php:388 pages/checkout.php:494
1809
msgid "Payment Information"
1810
- msgstr ""
1811
1812
#: classes/gateways/class.pmprogateway_braintree.php:316
1813
#: classes/gateways/class.pmprogateway_stripe.php:450 pages/billing.php:257
@@ -2360,7 +2360,7 @@ msgstr ""
2360
#: includes/functions.php:202
2361
#, php-format
2362
msgid "<strong>%s</strong> now"
2363
- msgstr ""
2364
2365
#: includes/functions.php:211
2366
#, php-format
@@ -2596,7 +2596,7 @@ msgstr "uloskirjaus"
2596
#: pages/billing.php:25 pages/cancel.php:52 pages/invoice.php:109 pages/levels.php:13
2597
#: shortcodes/pmpro_account.php:44 shortcodes/pmpro_account.php:123
2598
msgid "Level"
2599
- msgstr ""
2600
2601
#: pages/billing.php:27
2602
msgid "Membership Fee"
@@ -2750,7 +2750,7 @@ msgstr ""
2750
2751
#: pages/checkout.php:172
2752
msgid "Already have an account?"
2753
- msgstr ""
2754
2755
#: pages/checkout.php:172
2756
msgid "Log in here"
@@ -2781,7 +2781,7 @@ msgstr "JÄTÄ TYHJÄKSI"
2781
msgid ""
2782
"You are logged in as <strong>%s</strong>. If you would like to use a different "
2783
"account for this membership, <a href=\"%s\">log out now</a>."
2784
- msgstr ""
2785
2786
#: pages/checkout.php:285
2787
msgid "Choose your Payment Method"
1802
#: classes/gateways/class.pmprogateway_stripe.php:388 pages/checkout.php:494
1803
#, php-format
1804
msgid "We Accept %s"
1805
+ msgstr "Maksuvälineenä käyvät %s"
1806
1807
#: classes/gateways/class.pmprogateway_braintree.php:283
1808
#: classes/gateways/class.pmprogateway_stripe.php:388 pages/checkout.php:494
1809
msgid "Payment Information"
1810
+ msgstr "Maksutiedot"
1811
1812
#: classes/gateways/class.pmprogateway_braintree.php:316
1813
#: classes/gateways/class.pmprogateway_stripe.php:450 pages/billing.php:257
2360
#: includes/functions.php:202
2361
#, php-format
2362
msgid "<strong>%s</strong> now"
2363
+ msgstr "<strong>%s</strong> nyt"
2364
2365
#: includes/functions.php:211
2366
#, php-format
2596
#: pages/billing.php:25 pages/cancel.php:52 pages/invoice.php:109 pages/levels.php:13
2597
#: shortcodes/pmpro_account.php:44 shortcodes/pmpro_account.php:123
2598
msgid "Level"
2599
+ msgstr "Taso"
2600
2601
#: pages/billing.php:27
2602
msgid "Membership Fee"
2750
2751
#: pages/checkout.php:172
2752
msgid "Already have an account?"
2753
+ msgstr "Onko sinulla jo tili?"
2754
2755
#: pages/checkout.php:172
2756
msgid "Log in here"
2781
msgid ""
2782
"You are logged in as <strong>%s</strong>. If you would like to use a different "
2783
"account for this membership, <a href=\"%s\">log out now</a>."
2784
+ msgstr "Olet kirjautunut sisään käyttäjänä <strong>%s</strong>. Jos haluat käyttää eri tiliä, <a href=\"%s\">kirjaudu ulos</a>."
2785
2786
#: pages/checkout.php:285
2787
msgid "Choose your Payment Method"
paid-memberships-pro.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Paid Memberships Pro
4
Plugin URI: http://www.paidmembershipspro.com
5
Description: Plugin to Handle Memberships
6
- Version: 1.8.13.5
7
Author: Stranger Studios
8
Author URI: http://www.strangerstudios.com
9
Text Domain: pmpro
@@ -15,7 +15,7 @@ Domain Path: /languages
15
*/
16
17
//version constant
18
- define("PMPRO_VERSION", "1.8.13.5");
19
define("PMPRO_USER_AGENT", "Paid Memberships Pro v" . PMPRO_VERSION . "; " . site_url());
20
21
//if the session has been started yet, start it (ignore if running from command line)
3
Plugin Name: Paid Memberships Pro
4
Plugin URI: http://www.paidmembershipspro.com
5
Description: Plugin to Handle Memberships
6
+ Version: 1.8.13.6
7
Author: Stranger Studios
8
Author URI: http://www.strangerstudios.com
9
Text Domain: pmpro
15
*/
16
17
//version constant
18
+ define("PMPRO_VERSION", "1.8.13.6");
19
define("PMPRO_USER_AGENT", "Paid Memberships Pro v" . PMPRO_VERSION . "; " . site_url());
20
21
//if the session has been started yet, start it (ignore if running from command line)
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: strangerstudios
3
Tags: memberships, membership, authorize.net, ecommerce, paypal, stripe, braintree, restrict access, restrict content, directory site, payflow
4
Requires at least: 4
5
Tested up to: 4.7.2
6
- Stable tag: 1.8.13.5
7
8
A revenue-generating machine for membership sites. Unlimited levels with recurring payment, protected content and member management.
9
@@ -115,6 +115,13 @@ Not sure? You can find out by doing a bit a research.
115
[View All Screenshots](http://www.paidmembershipspro.com/features/screenshots/)
116
117
== Changelog ==
118
= 1.8.13.5 =
119
* BUG: Fixed notifications.php to make sure it really only checks once per day. Also updated the URL checked to notifications.paidmembershipspro.com, which runs on its own server.
120
3
Tags: memberships, membership, authorize.net, ecommerce, paypal, stripe, braintree, restrict access, restrict content, directory site, payflow
4
Requires at least: 4
5
Tested up to: 4.7.2
6
+ Stable tag: 1.8.13.6
7
8
A revenue-generating machine for membership sites. Unlimited levels with recurring payment, protected content and member management.
9
115
[View All Screenshots](http://www.paidmembershipspro.com/features/screenshots/)
116
117
== Changelog ==
118
+ = 1.8.13.6 =
119
+ * BUG: Fixed bug where credit card expiration emails would be sent to users with PayPal Express orders.
120
+ * BUG: Fixed bug when updating billing with Stripe.
121
+ * BUG: Fixed bug where the archive/search filter was not running for logged out users.
122
+ * ENHANCEMENT: Updated Finnish translations. (Thanks, JP Jakonen)
123
+ * ENHANCEMENT: Added filter for modifying the order description in Stripe. (Thanks, Rafe Colton)
124
+
125
= 1.8.13.5 =
126
* BUG: Fixed notifications.php to make sure it really only checks once per day. Also updated the URL checked to notifications.paidmembershipspro.com, which runs on its own server.
127
scheduled/crons.php CHANGED
@@ -168,7 +168,7 @@ function pmpro_cron_credit_card_expiring_warnings()
168
//make sure they are using a credit card type billing method for their current membership level (check the last order)
169
$last_order = new MemberOrder();
170
$last_order->getLastMemberOrder($euser->ID);
171
- if(empty($last_order->accountnumber))
172
continue;
173
174
//okay send them an email
168
//make sure they are using a credit card type billing method for their current membership level (check the last order)
169
$last_order = new MemberOrder();
170
$last_order->getLastMemberOrder($euser->ID);
171
+ if(empty($last_order->accountnumber) && 'XXXXXXXXXXXXXXXX' != $last_order->accountnumber)
172
continue;
173
174
//okay send them an email