Version Description
- BuddyPress ( bug ). A bug that was first introduced in s2Member v3.2.3 with Hook priority on
template_redirect
was causing compatiblity issues with BuddyPress. This has been corrected in s2Member v3.2.4+. - Bug fix. The s2Member Meta Box panel was not being displayed with Custom Post Types. This has been resolved in s2Member v3.2.4+.
Download this release
Release Info
Developer | PriMoThemes |
Plugin | s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members) |
Version | 3.2.4 |
Comparing to | |
See all releases |
Code changes from version 3.2.3 to 3.2.4
- includes/functions/meta-boxes.inc.php +5 -3
- includes/hooks.inc.php +1 -1
- readme.txt +6 -2
- s2member.php +3 -3
includes/functions/meta-boxes.inc.php
CHANGED
@@ -21,11 +21,13 @@ if (!function_exists ("ws_plugin__s2member_add_meta_boxes"))
|
|
21 |
{
|
22 |
function ws_plugin__s2member_add_meta_boxes ()
|
23 |
{
|
|
|
|
|
24 |
do_action ("ws_plugin__s2member_before_add_meta_boxes", get_defined_vars ());
|
25 |
/**/
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
/**/
|
30 |
do_action ("ws_plugin__s2member_after_add_meta_boxes", get_defined_vars ());
|
31 |
/**/
|
21 |
{
|
22 |
function ws_plugin__s2member_add_meta_boxes ()
|
23 |
{
|
24 |
+
global $wp_post_types; /* Global reference. */
|
25 |
+
/**/
|
26 |
do_action ("ws_plugin__s2member_before_add_meta_boxes", get_defined_vars ());
|
27 |
/**/
|
28 |
+
foreach ($wp_post_types as $type => $post_type_object) /* Handles Custom Post Types as well. */
|
29 |
+
if (!in_array ($type, array ("revision", "attachment", "nav_menu_item"))) /* But NOT on these Post Types. */
|
30 |
+
add_meta_box ("ws-plugin--s2member-security", "s2Member", "ws_plugin__s2member_security_meta_box", $type, "side", "high");
|
31 |
/**/
|
32 |
do_action ("ws_plugin__s2member_after_add_meta_boxes", get_defined_vars ());
|
33 |
/**/
|
includes/hooks.inc.php
CHANGED
@@ -38,7 +38,7 @@ add_action ("init", "ws_plugin__s2member_auto_eot_system_via_cron");
|
|
38 |
add_action ("template_redirect", "ws_plugin__s2member_profile");
|
39 |
add_action ("template_redirect", "ws_plugin__s2member_membership_options_page");
|
40 |
add_action ("template_redirect", "ws_plugin__s2member_check_force_ssl");
|
41 |
-
add_action ("template_redirect", "ws_plugin__s2member_security_gate");
|
42 |
/**/
|
43 |
add_filter ("widget_text", "do_shortcode"); /* Shortcodes in widgets. */
|
44 |
/**/
|
38 |
add_action ("template_redirect", "ws_plugin__s2member_profile");
|
39 |
add_action ("template_redirect", "ws_plugin__s2member_membership_options_page");
|
40 |
add_action ("template_redirect", "ws_plugin__s2member_check_force_ssl");
|
41 |
+
add_action ("template_redirect", "ws_plugin__s2member_security_gate", 1);
|
42 |
/**/
|
43 |
add_filter ("widget_text", "do_shortcode"); /* Shortcodes in widgets. */
|
44 |
/**/
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== s2Member ( Membership w/ PayPal® Integration ) ~ now Multisite compatible! ===
|
2 |
|
3 |
-
Version: 3.2.
|
4 |
-
Stable tag: 3.2.
|
5 |
Framework: WS-P-3.0
|
6 |
|
7 |
SSL Compatible: yes
|
@@ -170,6 +170,10 @@ Not yet. This is coming soon though. It will be included in a future release of
|
|
170 |
|
171 |
== Changelog ==
|
172 |
|
|
|
|
|
|
|
|
|
173 |
= 3.2.3 =
|
174 |
* New Feature - "Alternative View Protection". Check your Dashboard: `s2Member -> General Options -> Alternative View Protection`. This new feature deals with some long awaited (protection) for things like: search results, RSS/XML feeds, and custom queries; where excerpts of protected content may slip through, depending on your theme. This feature is NEW, and still in an experimental state. It is disabled by default, but we encourage you to try it with different settings, and report back to us through the support forums for s2Member.
|
175 |
* New Feature - "Query Conditionals" for developers. Check your Dashboard: `s2Member -> API Scripting -> Query Conditionals`. s2Member now provides several built-in API Functions that are tailored to meet the needs of developers integrating s2Member into their themes. Such as: `is_category_protected_by_s2member($cat_id)`, `is_category_permitted_by_s2member($cat_id)`, `is_tag_protected_by_s2member($tag_id [slug or tag name])`, `is_tag_permitted_by_s2member($tag_id [slug or tag name])`, `is_post_protected_by_s2member($post_id)`, `is_post_permitted_by_s2member($post_id)`, `is_page_protected_by_s2member($page_id)`, `is_page_permitted_by_s2member($page_id)`, `is_uri_protected_by_s2member($uri [or full url])`, `is_uri_permitted_by_s2member($uri [ or full url])`. In addition, there are two special functions that can be applied by theme authors before making custom queries: `attach_s2member_query_filters()`, `detach_s2member_query_filters()`. These can be used before and after a call to `query_posts()` for example. s2Member will automatically filter all protected content ( not available to the current User/Member ). Further details on these functions is available under the `API Scripting` section in your Dashboard. You can also have a look at this file: `/s2member/includes/functions/api-functions.inc.php`.
|
1 |
=== s2Member ( Membership w/ PayPal® Integration ) ~ now Multisite compatible! ===
|
2 |
|
3 |
+
Version: 3.2.4
|
4 |
+
Stable tag: 3.2.4
|
5 |
Framework: WS-P-3.0
|
6 |
|
7 |
SSL Compatible: yes
|
170 |
|
171 |
== Changelog ==
|
172 |
|
173 |
+
= 3.2.4 =
|
174 |
+
* BuddyPress ( bug ). A bug that was first introduced in s2Member v3.2.3 with Hook priority on `template_redirect` was causing compatiblity issues with BuddyPress. This has been corrected in s2Member v3.2.4+.
|
175 |
+
* Bug fix. The s2Member Meta Box panel was not being displayed with Custom Post Types. This has been resolved in s2Member v3.2.4+.
|
176 |
+
|
177 |
= 3.2.3 =
|
178 |
* New Feature - "Alternative View Protection". Check your Dashboard: `s2Member -> General Options -> Alternative View Protection`. This new feature deals with some long awaited (protection) for things like: search results, RSS/XML feeds, and custom queries; where excerpts of protected content may slip through, depending on your theme. This feature is NEW, and still in an experimental state. It is disabled by default, but we encourage you to try it with different settings, and report back to us through the support forums for s2Member.
|
179 |
* New Feature - "Query Conditionals" for developers. Check your Dashboard: `s2Member -> API Scripting -> Query Conditionals`. s2Member now provides several built-in API Functions that are tailored to meet the needs of developers integrating s2Member into their themes. Such as: `is_category_protected_by_s2member($cat_id)`, `is_category_permitted_by_s2member($cat_id)`, `is_tag_protected_by_s2member($tag_id [slug or tag name])`, `is_tag_permitted_by_s2member($tag_id [slug or tag name])`, `is_post_protected_by_s2member($post_id)`, `is_post_permitted_by_s2member($post_id)`, `is_page_protected_by_s2member($page_id)`, `is_page_permitted_by_s2member($page_id)`, `is_uri_protected_by_s2member($uri [or full url])`, `is_uri_permitted_by_s2member($uri [ or full url])`. In addition, there are two special functions that can be applied by theme authors before making custom queries: `attach_s2member_query_filters()`, `detach_s2member_query_filters()`. These can be used before and after a call to `query_posts()` for example. s2Member will automatically filter all protected content ( not available to the current User/Member ). Further details on these functions is available under the `API Scripting` section in your Dashboard. You can also have a look at this file: `/s2member/includes/functions/api-functions.inc.php`.
|
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.2.
|
13 |
-
Stable tag: 3.2.
|
14 |
Framework: WS-P-3.0
|
15 |
|
16 |
SSL Compatible: yes
|
@@ -48,7 +48,7 @@ if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
|
|
48 |
/*
|
49 |
Define versions.
|
50 |
*/
|
51 |
-
define ("WS_PLUGIN__S2MEMBER_VERSION", "3.2.
|
52 |
define ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION", "5.2");
|
53 |
define ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION", "3.0");
|
54 |
define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "1.2.3");
|
9 |
If not, see: <http://www.gnu.org/licenses/>.
|
10 |
*/
|
11 |
/*
|
12 |
+
Version: 3.2.4
|
13 |
+
Stable tag: 3.2.4
|
14 |
Framework: WS-P-3.0
|
15 |
|
16 |
SSL Compatible: yes
|
48 |
/*
|
49 |
Define versions.
|
50 |
*/
|
51 |
+
define ("WS_PLUGIN__S2MEMBER_VERSION", "3.2.4");
|
52 |
define ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION", "5.2");
|
53 |
define ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION", "3.0");
|
54 |
define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "1.2.3");
|