s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members) - Version 3.1.4

Version Description

  • Bug fix. Conditional check against DOING_AJAX added as an exclusion to the admin lockout routines for s2Member. This allows /wp-admin/admin-ajax.php to receive Ajax requests at all times, as it should be.
Download this release

Release Info

Developer PriMoThemes
Plugin Icon 128x128 s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members)
Version 3.1.4
Comparing to
See all releases

Code changes from version 3.1.3 to 3.1.4

includes/functions/admin-lockout.inc.php CHANGED
@@ -23,7 +23,8 @@ if (!function_exists ("ws_plugin__s2member_admin_lockout"))
23
  {
24
  do_action ("ws_plugin__s2member_before_admin_lockouts", get_defined_vars ());
25
  /**/
26
- if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["force_admin_lockouts"]/**/
 
27
  && !current_user_can ("edit_posts") /* In other words: Subscribers and Members. */
28
  && apply_filters ("ws_plugin__s2member_admin_lockout", true, get_defined_vars ()) && /* Filter. */
29
  wp_redirect (get_page_link ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_welcome_page"])) !== "nill")
23
  {
24
  do_action ("ws_plugin__s2member_before_admin_lockouts", get_defined_vars ());
25
  /**/
26
+ if (!DOING_AJAX /* Do NOT protect Ajax requests. */
27
+ && $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["force_admin_lockouts"]/**/
28
  && !current_user_can ("edit_posts") /* In other words: Subscribers and Members. */
29
  && apply_filters ("ws_plugin__s2member_admin_lockout", true, get_defined_vars ()) && /* Filter. */
30
  wp_redirect (get_page_link ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_welcome_page"])) !== "nill")
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === s2Member ( Membership w/ PayPal® Integration ) also works w/ BuddyPress ===
2
 
3
- Version: 3.1.3
4
- Stable tag: 3.1.3
5
  Framework: WS-P-3.0
6
 
7
  SSL Compatible: yes
@@ -156,6 +156,9 @@ Not yet. This is coming soon though. It will be included in a future release of
156
 
157
  == Changelog ==
158
 
 
 
 
159
  = 3.1.3 =
160
  * Bug fix. Comparison between `$_SERVER["HTTP_HOST"]` and a PayPal® Custom/Proxy was failing on some servers that force a host port number into the `$_SERVER["HTTP_HOST"]` environment variable. MediaTemple® does this. If you're hosted by MediaTemple®, and you're using the s2Member Pro Module, you should upgrade to v3.1.3+.
161
  * Bug fix. The WP_Http class, which is responsible for handling cURL, ExtHTTP, and/or fopen functionality for connections to PayPal®, was defaulting to a `5` second stream timeout. Under certain conditions, this was too low ( i.e. slow responses from PayPal®, and/or a WordPress® MySQL database ). The default timeout has now been increased to `20` seconds; which is designed to give high priority status to IPN processing routines; thereby reducing the chances of a connection timeout considerably, and improving the overall reliability of the s2Member checkout experience.
1
  === s2Member ( Membership w/ PayPal® Integration ) also works w/ BuddyPress ===
2
 
3
+ Version: 3.1.4
4
+ Stable tag: 3.1.4
5
  Framework: WS-P-3.0
6
 
7
  SSL Compatible: yes
156
 
157
  == Changelog ==
158
 
159
+ = 3.1.4 =
160
+ * Bug fix. Conditional check against `DOING_AJAX` added as an exclusion to the admin lockout routines for s2Member. This allows `/wp-admin/admin-ajax.php` to receive Ajax requests at all times, as it should be.
161
+
162
  = 3.1.3 =
163
  * Bug fix. Comparison between `$_SERVER["HTTP_HOST"]` and a PayPal® Custom/Proxy was failing on some servers that force a host port number into the `$_SERVER["HTTP_HOST"]` environment variable. MediaTemple® does this. If you're hosted by MediaTemple®, and you're using the s2Member Pro Module, you should upgrade to v3.1.3+.
164
  * Bug fix. The WP_Http class, which is responsible for handling cURL, ExtHTTP, and/or fopen functionality for connections to PayPal®, was defaulting to a `5` second stream timeout. Under certain conditions, this was too low ( i.e. slow responses from PayPal®, and/or a WordPress® MySQL database ). The default timeout has now been increased to `20` seconds; which is designed to give high priority status to IPN processing routines; thereby reducing the chances of a connection timeout considerably, and improving the overall reliability of the s2Member checkout experience.
s2member.php CHANGED
@@ -9,8 +9,8 @@ along with this software. In the main directory, see: /licensing/
9
  If not, see: <http://www.gnu.org/licenses/>.
10
  */
11
  /*
12
- Version: 3.1.3
13
- Stable tag: 3.1.3
14
  Framework: WS-P-3.0
15
 
16
  SSL Compatible: yes
@@ -47,10 +47,10 @@ if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
47
  /*
48
  Define versions.
49
  */
50
- define ("WS_PLUGIN__S2MEMBER_VERSION", "3.1.3");
51
  define ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION", "5.2");
52
  define ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION", "3.0");
53
- define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "1.0.9");
54
  /*
55
  Compatibility checks.
56
  */
9
  If not, see: <http://www.gnu.org/licenses/>.
10
  */
11
  /*
12
+ Version: 3.1.4
13
+ Stable tag: 3.1.4
14
  Framework: WS-P-3.0
15
 
16
  SSL Compatible: yes
47
  /*
48
  Define versions.
49
  */
50
+ define ("WS_PLUGIN__S2MEMBER_VERSION", "3.1.4");
51
  define ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION", "5.2");
52
  define ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION", "3.0");
53
+ define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "1.1");
54
  /*
55
  Compatibility checks.
56
  */