Paid Memberships Pro - Version 1.8.5.5

Version Description

  • BUG: Added a $pmpro_core_pages global and using that in includes/init.php so we don't try to load preheaders and templates for pages added to that from other addons/etc.
Download this release

Release Info

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

Code changes from version 1.8.5.4 to 1.8.5.5

Files changed (3) hide show
  1. includes/init.php +6 -3
  2. paid-memberships-pro.php +2 -2
  3. readme.txt +4 -1
includes/init.php CHANGED
@@ -70,7 +70,7 @@ function pmpro_init()
70
  wp_enqueue_style('pmpro_print', $print_css, array(), PMPRO_VERSION, "print");
71
  }
72
 
73
- global $pmpro_pages, $pmpro_ready, $pmpro_currencies, $pmpro_currency, $pmpro_currency_symbol;
74
  $pmpro_pages = array();
75
  $pmpro_pages["account"] = pmpro_getOption("account_page_id");
76
  $pmpro_pages["billing"] = pmpro_getOption("billing_page_id");
@@ -80,6 +80,9 @@ function pmpro_init()
80
  $pmpro_pages["invoice"] = pmpro_getOption("invoice_page_id");
81
  $pmpro_pages["levels"] = pmpro_getOption("levels_page_id");
82
 
 
 
 
83
  $pmpro_ready = pmpro_is_ready();
84
 
85
  /**
@@ -113,14 +116,14 @@ function pmpro_wp()
113
  {
114
  if(!is_admin())
115
  {
116
- global $post, $pmpro_pages, $pmpro_page_name, $pmpro_page_id, $pmpro_body_classes;
117
 
118
  //no pages yet?
119
  if(empty($pmpro_pages))
120
  return;
121
 
122
  //run the appropriate preheader function
123
- foreach($pmpro_pages as $pmpro_page_name => $pmpro_page_id)
124
  {
125
  if(!empty($post->post_content) && strpos($post->post_content, "[pmpro_" . $pmpro_page_name . "]") !== false)
126
  {
70
  wp_enqueue_style('pmpro_print', $print_css, array(), PMPRO_VERSION, "print");
71
  }
72
 
73
+ global $pmpro_pages, $pmpro_core_pages, $pmpro_ready, $pmpro_currencies, $pmpro_currency, $pmpro_currency_symbol;
74
  $pmpro_pages = array();
75
  $pmpro_pages["account"] = pmpro_getOption("account_page_id");
76
  $pmpro_pages["billing"] = pmpro_getOption("billing_page_id");
80
  $pmpro_pages["invoice"] = pmpro_getOption("invoice_page_id");
81
  $pmpro_pages["levels"] = pmpro_getOption("levels_page_id");
82
 
83
+ //save this in case we want a clean version of the array with just the core pages
84
+ $pmpro_core_pages = $pmpro_pages;
85
+
86
  $pmpro_ready = pmpro_is_ready();
87
 
88
  /**
116
  {
117
  if(!is_admin())
118
  {
119
+ global $post, $pmpro_pages, $pmpro_core_pages, $pmpro_page_name, $pmpro_page_id, $pmpro_body_classes;
120
 
121
  //no pages yet?
122
  if(empty($pmpro_pages))
123
  return;
124
 
125
  //run the appropriate preheader function
126
+ foreach($pmpro_core_pages as $pmpro_page_name => $pmpro_page_id)
127
  {
128
  if(!empty($post->post_content) && strpos($post->post_content, "[pmpro_" . $pmpro_page_name . "]") !== false)
129
  {
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.5.4
7
  Author: Stranger Studios
8
  Author URI: http://www.strangerstudios.com
9
  */
@@ -13,7 +13,7 @@ Author URI: http://www.strangerstudios.com
13
  */
14
 
15
  //version constant
16
- define("PMPRO_VERSION", "1.8.5.4");
17
 
18
  //if the session has been started yet, start it (ignore if running from command line)
19
  if(defined('STDIN') )
3
  Plugin Name: Paid Memberships Pro
4
  Plugin URI: http://www.paidmembershipspro.com
5
  Description: Plugin to Handle Memberships
6
+ Version: 1.8.5.5
7
  Author: Stranger Studios
8
  Author URI: http://www.strangerstudios.com
9
  */
13
  */
14
 
15
  //version constant
16
+ define("PMPRO_VERSION", "1.8.5.5");
17
 
18
  //if the session has been started yet, start it (ignore if running from command line)
19
  if(defined('STDIN') )
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.3
6
- Stable tag: 1.8.5.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.5.4 =
119
  * BUG: Fixed infinite redirect issues that would come up on servers setting $_SERVER['HTTPS'] to 'Off' vs 'off' or false. (Thanks, Gordon Seirup)
120
  * BUG: Using current_time('timestamp') in the sales report to avoid issues where sales at the beginning or end of the day aren't showing up under Today.
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.3
6
+ Stable tag: 1.8.5.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.5.5 =
119
+ * BUG: Added a $pmpro_core_pages global and using that in includes/init.php so we don't try to load preheaders and templates for pages added to that from other addons/etc.
120
+
121
  = 1.8.5.4 =
122
  * BUG: Fixed infinite redirect issues that would come up on servers setting $_SERVER['HTTPS'] to 'Off' vs 'off' or false. (Thanks, Gordon Seirup)
123
  * BUG: Using current_time('timestamp') in the sales report to avoid issues where sales at the beginning or end of the day aren't showing up under Today.