Paid Memberships Pro - Version 1.8.13.5

Version Description

  • 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.
Download this release

Release Info

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

Code changes from version 1.8.13.4 to 1.8.13.5

includes/notifications.php CHANGED
@@ -9,18 +9,25 @@ function pmpro_notifications()
9
$pmpro_notification = get_transient("pmpro_notification_" . PMPRO_VERSION);
10
if(empty($pmpro_notification))
11
{
12
if(is_ssl())
13
{
14
- $remote_notification = wp_remote_get("https://www.paidmembershipspro.com/notifications/?v=" . PMPRO_VERSION);
15
}
16
else
17
{
18
- $remote_notification = wp_remote_get("http://www.paidmembershipspro.com/notifications/?v=" . PMPRO_VERSION);
19
}
20
21
$pmpro_notification = wp_remote_retrieve_body($remote_notification);
22
-
23
- set_transient("pmpro_notification_" . PMPRO_VERSION, $pmpro_notification, 86400);
24
}
25
26
if($pmpro_notification && $pmpro_notification != "NULL")
9
$pmpro_notification = get_transient("pmpro_notification_" . PMPRO_VERSION);
10
if(empty($pmpro_notification))
11
{
12
+ //set to NULL in case the below times out or fails, this way we only check once a day
13
+ set_transient("pmpro_notification_" . PMPRO_VERSION, 'NULL', 86400);
14
+
15
+ //figure out which server to get from
16
if(is_ssl())
17
{
18
+ $remote_notification = wp_remote_get("https://notifications.paidmembershipspro.com/?v=" . PMPRO_VERSION);
19
}
20
else
21
{
22
+ $remote_notification = wp_remote_get("http://notifications.paidmembershipspro.com/?v=" . PMPRO_VERSION);
23
}
24
25
+ //get notification
26
$pmpro_notification = wp_remote_retrieve_body($remote_notification);
27
+
28
+ //update transient if we got something
29
+ if(!empty($pmpro_notification))
30
+ set_transient("pmpro_notification_" . PMPRO_VERSION, $pmpro_notification, 86400);
31
}
32
33
if($pmpro_notification && $pmpro_notification != "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.13.4
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.4");
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.5
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.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)
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.4
7
8
A revenue-generating machine for membership sites. Unlimited levels with recurring payment, protected content and member management.
9
@@ -115,6 +115,9 @@ 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.4 =
119
* BUG/ENHANCEMENT: Changed the pmpro_button shortcode to pmpro_checkout_button. (The old pmpro_button will also still work. checkout_button works if you have Register Helper installed.)
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.5
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.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
+
121
= 1.8.13.4 =
122
* BUG/ENHANCEMENT: Changed the pmpro_button shortcode to pmpro_checkout_button. (The old pmpro_button will also still work. checkout_button works if you have Register Helper installed.)
123