Version Description
- BUG FIX: Fixed warnings on the Network Dashboard's sites page.
- BUG FIX: Skipping update scripts that require the Stripe library if the system doesn't support the minimum requirements for the Stripe API. This avoids warnings and errors during upgrade.
Download this release
Release Info
Developer | strangerstudios |
Plugin | Paid Memberships Pro |
Version | 1.9.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.9.2.1 to 1.9.2.2
- CONTRIBUTE.md +6 -2
- classes/class-deny-network-activation.php +1 -5
- includes/upgradecheck.php +10 -4
- paid-memberships-pro.php +2 -2
- readme.txt +6 -1
CONTRIBUTE.md
CHANGED
@@ -17,13 +17,17 @@ __Please Note:__ GitHub is for bug reports and contributions only. If you have a
|
|
17 |
## Making Changes
|
18 |
|
19 |
* Fork the repository on GitHub
|
20 |
-
* For bug fixes, checkout the latest versioned branch of the PMPro repository (e.g. 1.
|
21 |
* For new features and enhancements, checkout the DEV branch of the PMPro respository.
|
22 |
* Make the changes to your forked repository
|
|
|
|
|
|
|
|
|
23 |
* Ensure you stick to the [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards) (even though much of the PMPro code does not currently)
|
24 |
* When committing, reference your issue (if present) and include a note about the fix
|
25 |
* Push the changes to your fork
|
26 |
-
* For bug fixes, submit a pull request to the latest versioned branch of the PMPro repository (e.g. 1.
|
27 |
* For new features and enhancements, submit a pull request to the DEV branch of the PMPro repository.
|
28 |
* We will process all pull requests and make suggestions or changes as soon as possible. Feel free to ping us politely via email or social networks to take a look at your pulls.
|
29 |
|
17 |
## Making Changes
|
18 |
|
19 |
* Fork the repository on GitHub
|
20 |
+
* For bug fixes, checkout the latest versioned branch of the PMPro repository (e.g. 1.9).
|
21 |
* For new features and enhancements, checkout the DEV branch of the PMPro respository.
|
22 |
* Make the changes to your forked repository
|
23 |
+
* Make sure to pull in any "upstream" changes first.
|
24 |
+
* Use `git remote add upstream https://github.com/strangerstudios/paid-memberships-pro.git` to set the upstream repo
|
25 |
+
* Use `git checkout upstream/dev` then `git pull` to pull in the latest updates on dev.
|
26 |
+
* Use `git checkout dev` then `git merge upstream/dev` to merge those updates into your dev.
|
27 |
* Ensure you stick to the [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards) (even though much of the PMPro code does not currently)
|
28 |
* When committing, reference your issue (if present) and include a note about the fix
|
29 |
* Push the changes to your fork
|
30 |
+
* For bug fixes, submit a pull request to the latest versioned branch of the PMPro repository (e.g. 1.9).
|
31 |
* For new features and enhancements, submit a pull request to the DEV branch of the PMPro repository.
|
32 |
* We will process all pull requests and make suggestions or changes as soon as possible. Feel free to ping us politely via email or social networks to take a look at your pulls.
|
33 |
|
classes/class-deny-network-activation.php
CHANGED
@@ -7,11 +7,7 @@ class PMPro_Deny_Network_Activation {
|
|
7 |
public function init() {
|
8 |
register_activation_hook( PMPRO_BASE_FILE, array( $this, 'pmpro_check_network_activation' ) );
|
9 |
add_action( 'wp_print_footer_scripts', array( $this, 'wp_admin_style' ) );
|
10 |
-
add_action( 'network_admin_notices', array( $this, 'display_message_after_network_activation_attempt' ) );
|
11 |
-
|
12 |
-
// On the blog list page, show the plugins and theme active on each blog
|
13 |
-
add_filter( 'manage_sites-network_columns', array( $this, 'add_sites_column' ), 10, 1 );
|
14 |
-
add_action( 'manage_sites_custom_column', array( $this, 'manage_sites_custom_column' ), 10, 3 );
|
15 |
}
|
16 |
|
17 |
public function wp_admin_style() {
|
7 |
public function init() {
|
8 |
register_activation_hook( PMPRO_BASE_FILE, array( $this, 'pmpro_check_network_activation' ) );
|
9 |
add_action( 'wp_print_footer_scripts', array( $this, 'wp_admin_style' ) );
|
10 |
+
add_action( 'network_admin_notices', array( $this, 'display_message_after_network_activation_attempt' ) );
|
|
|
|
|
|
|
|
|
11 |
}
|
12 |
|
13 |
public function wp_admin_style() {
|
includes/upgradecheck.php
CHANGED
@@ -158,11 +158,17 @@ function pmpro_checkForUpgrades()
|
|
158 |
|
159 |
/*
|
160 |
v1.8.9.1
|
161 |
-
* Fixing Stripe orders where user_id/membership_id = 0
|
|
|
|
|
162 |
*/
|
163 |
-
|
164 |
-
|
165 |
-
$pmpro_db_version
|
|
|
|
|
|
|
|
|
166 |
}
|
167 |
|
168 |
/*
|
158 |
|
159 |
/*
|
160 |
v1.8.9.1
|
161 |
+
* Fixing Stripe orders where user_id/membership_id = 0
|
162 |
+
* Updated in v1.9.2.2 to check for namespace compatibility first,
|
163 |
+
since the Stripe class isn't loaded for PHP < 5.3.29
|
164 |
*/
|
165 |
+
if (version_compare( PHP_VERSION, '5.3.29', '>=' )) {
|
166 |
+
require_once(PMPRO_DIR . "/includes/updates/upgrade_1_8_9_1.php");
|
167 |
+
if($pmpro_db_version < 1.891) {
|
168 |
+
$pmpro_db_version = pmpro_upgrade_1_8_9_1();
|
169 |
+
}
|
170 |
+
} elseif($pmpro_db_version < 1.891) {
|
171 |
+
$pmpro_db_version = 1.891; //skipping this update because Stripe is not supported
|
172 |
}
|
173 |
|
174 |
/*
|
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.9.2.
|
7 |
Author: Stranger Studios
|
8 |
Author URI: http://www.strangerstudios.com
|
9 |
Text Domain: paid-memberships-pro
|
@@ -15,7 +15,7 @@ Domain Path: /languages
|
|
15 |
*/
|
16 |
|
17 |
// version constant
|
18 |
-
define( 'PMPRO_VERSION', '1.9.2.
|
19 |
define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
|
20 |
define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
|
21 |
|
3 |
Plugin Name: Paid Memberships Pro
|
4 |
Plugin URI: http://www.paidmembershipspro.com
|
5 |
Description: Plugin to Handle Memberships
|
6 |
+
Version: 1.9.2.2
|
7 |
Author: Stranger Studios
|
8 |
Author URI: http://www.strangerstudios.com
|
9 |
Text Domain: paid-memberships-pro
|
15 |
*/
|
16 |
|
17 |
// version constant
|
18 |
+
define( 'PMPRO_VERSION', '1.9.2.2' );
|
19 |
define( 'PMPRO_USER_AGENT', 'Paid Memberships Pro v' . PMPRO_VERSION . '; ' . site_url() );
|
20 |
define( 'PMPRO_MIN_PHP_VERSION', '5.6' );
|
21 |
|
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.8
|
6 |
-
Stable tag: 1.9.2.
|
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.9.2.1 =
|
119 |
* BUG FIX: Fixed issues with activation on single sites.
|
120 |
* BUG FIX: Starting PHP sessions earlier to fix issues with PayPal/PayPal Express checkouts.
|
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.8
|
6 |
+
Stable tag: 1.9.2.2
|
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 |
+
|
119 |
+
= 1.9.2.2 =
|
120 |
+
* BUG FIX: Fixed warnings on the Network Dashboard's sites page.
|
121 |
+
* BUG FIX: Skipping update scripts that require the Stripe library if the system doesn't support the minimum requirements for the Stripe API. This avoids warnings and errors during upgrade.
|
122 |
+
|
123 |
= 1.9.2.1 =
|
124 |
* BUG FIX: Fixed issues with activation on single sites.
|
125 |
* BUG FIX: Starting PHP sessions earlier to fix issues with PayPal/PayPal Express checkouts.
|