Version Description
- BUG: Fixed issue introduced in 1.8.11 where the pmpro_default_level custom field was being ignored at checkout.
- BUG: Fixed bugs in DB calls made for the compatibility checks for various gateways.
- BUG: Now sending a FREQUENCY parameter for PayPal Payflow orders.
Download this release
Release Info
Developer | strangerstudios |
Plugin | Paid Memberships Pro |
Version | 1.8.11.1 |
Comparing to | |
See all releases |
Code changes from version 1.8.11 to 1.8.11.1
- adminpages/functions.php +4 -4
- classes/gateways/class.pmprogateway_payflowpro.php +1 -0
- includes/functions.php +1 -1
- paid-memberships-pro.php +2 -2
- readme.txt +6 -1
adminpages/functions.php
CHANGED
@@ -52,7 +52,7 @@ function pmpro_checkLevelForStripeCompatibility($level = NULL)
|
|
52 |
{
|
53 |
//need to look it up?
|
54 |
if(is_numeric($level))
|
55 |
-
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1"
|
56 |
|
57 |
//check this level
|
58 |
if($level->billing_limit > 0)
|
@@ -102,7 +102,7 @@ function pmpro_checkLevelForPayflowCompatibility($level = NULL)
|
|
102 |
{
|
103 |
//need to look it up?
|
104 |
if(is_numeric($level))
|
105 |
-
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1"
|
106 |
|
107 |
//check this level
|
108 |
if($level->trial_amount > 0 ||
|
@@ -153,7 +153,7 @@ function pmpro_checkLevelForBraintreeCompatibility($level = NULL)
|
|
153 |
{
|
154 |
//need to look it up?
|
155 |
if(is_numeric($level))
|
156 |
-
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1"
|
157 |
|
158 |
//check this level
|
159 |
if($level->trial_amount > 0 ||
|
@@ -201,7 +201,7 @@ function pmpro_checkLevelForTwoCheckoutCompatibility($level = NULL)
|
|
201 |
{
|
202 |
//need to look it up?
|
203 |
if(is_numeric($level))
|
204 |
-
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1"
|
205 |
|
206 |
//check this level
|
207 |
if(pmpro_isLevelTrial($level))
|
52 |
{
|
53 |
//need to look it up?
|
54 |
if(is_numeric($level))
|
55 |
+
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1" , $level ) );
|
56 |
|
57 |
//check this level
|
58 |
if($level->billing_limit > 0)
|
102 |
{
|
103 |
//need to look it up?
|
104 |
if(is_numeric($level))
|
105 |
+
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1" , $level ) );
|
106 |
|
107 |
//check this level
|
108 |
if($level->trial_amount > 0 ||
|
153 |
{
|
154 |
//need to look it up?
|
155 |
if(is_numeric($level))
|
156 |
+
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1" , $level ) );
|
157 |
|
158 |
//check this level
|
159 |
if($level->trial_amount > 0 ||
|
201 |
{
|
202 |
//need to look it up?
|
203 |
if(is_numeric($level))
|
204 |
+
$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1" , $level ) );
|
205 |
|
206 |
//check this level
|
207 |
if(pmpro_isLevelTrial($level))
|
classes/gateways/class.pmprogateway_payflowpro.php
CHANGED
@@ -384,6 +384,7 @@
|
|
384 |
$nvpStr .= "&PROFILENAME=" . urlencode( apply_filters( 'pmpro_paypal_level_description', substr($order->membership_level->name . " at " . get_bloginfo("name"), 0, 127), $order->membership_level->name, $order, get_bloginfo("name")) );
|
385 |
|
386 |
$nvpStr .= "&PAYPERIOD=" . $payperiod;
|
|
|
387 |
|
388 |
$nvpStr .= "&CUSTIP=" . $_SERVER['REMOTE_ADDR']; // . "&INVNUM=" . $order->code;
|
389 |
|
384 |
$nvpStr .= "&PROFILENAME=" . urlencode( apply_filters( 'pmpro_paypal_level_description', substr($order->membership_level->name . " at " . get_bloginfo("name"), 0, 127), $order->membership_level->name, $order, get_bloginfo("name")) );
|
385 |
|
386 |
$nvpStr .= "&PAYPERIOD=" . $payperiod;
|
387 |
+
$nvpStr .= "&FREQUENCY=" . $order->BillingFrequency;
|
388 |
|
389 |
$nvpStr .= "&CUSTIP=" . $_SERVER['REMOTE_ADDR']; // . "&INVNUM=" . $order->code;
|
390 |
|
includes/functions.php
CHANGED
@@ -1956,7 +1956,7 @@ function pmpro_getAllLevels($include_hidden = false, $force = false)
|
|
1956 |
* Get level at checkout and place into $pmpro_level global.
|
1957 |
*/
|
1958 |
function pmpro_getLevelAtCheckout($level_id = NULL, $discount_code = NULL) {
|
1959 |
-
global $pmpro_level, $wpdb;
|
1960 |
|
1961 |
//reset pmpro_level
|
1962 |
$pmpro_level = NULL;
|
1956 |
* Get level at checkout and place into $pmpro_level global.
|
1957 |
*/
|
1958 |
function pmpro_getLevelAtCheckout($level_id = NULL, $discount_code = NULL) {
|
1959 |
+
global $pmpro_level, $wpdb, $post;
|
1960 |
|
1961 |
//reset pmpro_level
|
1962 |
$pmpro_level = NULL;
|
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.11
|
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.11");
|
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.11.1
|
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.11.1");
|
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: 3.5
|
5 |
Tested up to: 4.6.1
|
6 |
-
Stable tag: 1.8.11
|
7 |
|
8 |
A revenue-generating machine for membership sites. Unlimited levels with recurring payment, protected content and member management.
|
9 |
|
@@ -115,6 +115,11 @@ 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.11 =
|
119 |
* BUG: Fixed URL used when checking for addon updates.
|
120 |
* BUG: Now enqueueing the jquery.creditCardValidator.js file in Billing preheader.
|
3 |
Tags: memberships, membership, authorize.net, ecommerce, paypal, stripe, braintree, restrict access, restrict content, directory site, payflow
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.6.1
|
6 |
+
Stable tag: 1.8.11.1
|
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.11.1 =
|
119 |
+
* BUG: Fixed issue introduced in 1.8.11 where the pmpro_default_level custom field was being ignored at checkout.
|
120 |
+
* BUG: Fixed bugs in DB calls made for the compatibility checks for various gateways.
|
121 |
+
* BUG: Now sending a FREQUENCY parameter for PayPal Payflow orders.
|
122 |
+
|
123 |
= 1.8.11 =
|
124 |
* BUG: Fixed URL used when checking for addon updates.
|
125 |
* BUG: Now enqueueing the jquery.creditCardValidator.js file in Billing preheader.
|