Groups - Version 1.4.7

Version Description

  • Security improvement: plugin files accessed directly exit
Download this release

Release Info

Developer itthinx
Plugin Icon 128x128 Groups
Version 1.4.7
Comparing to
See all releases

Code changes from version 1.4.6.1 to 1.4.7

Files changed (38) hide show
  1. groups.php +2 -2
  2. lib/access/class-groups-access-meta-boxes.php +4 -0
  3. lib/access/class-groups-access-shortcodes.php +4 -0
  4. lib/access/class-groups-post-access.php +4 -0
  5. lib/admin/class-groups-admin-post-columns.php +4 -0
  6. lib/admin/class-groups-admin-posts.php +4 -0
  7. lib/admin/class-groups-admin-user-profile.php +4 -0
  8. lib/admin/class-groups-admin-users.php +4 -0
  9. lib/admin/class-groups-admin.php +4 -0
  10. lib/admin/groups-admin-capabilities-add.php +4 -0
  11. lib/admin/groups-admin-capabilities-edit.php +4 -0
  12. lib/admin/groups-admin-capabilities-remove.php +4 -0
  13. lib/admin/groups-admin-capabilities.php +5 -0
  14. lib/admin/groups-admin-groups-add.php +4 -0
  15. lib/admin/groups-admin-groups-edit.php +4 -0
  16. lib/admin/groups-admin-groups-remove.php +4 -0
  17. lib/admin/groups-admin-groups.php +4 -0
  18. lib/admin/groups-admin-options.php +4 -0
  19. lib/admin/groups-admin-tree-view.php +4 -0
  20. lib/auto/class-groups-registered.php +4 -0
  21. lib/core/class-groups-capability.php +4 -0
  22. lib/core/class-groups-controller.php +4 -0
  23. lib/core/class-groups-group-capability.php +4 -0
  24. lib/core/class-groups-group.php +5 -0
  25. lib/core/class-groups-help.php +4 -0
  26. lib/core/class-groups-options.php +4 -0
  27. lib/core/class-groups-pagination.php +4 -0
  28. lib/core/class-groups-user-capability.php +4 -0
  29. lib/core/class-groups-user-group.php +4 -0
  30. lib/core/class-groups-user.php +4 -0
  31. lib/core/class-groups-utility.php +4 -0
  32. lib/core/constants.php +4 -0
  33. lib/core/interface-i-capable.php +4 -0
  34. lib/core/wp-init.php +4 -0
  35. lib/views/class-groups-shortcodes.php +4 -0
  36. lib/views/class-groups-uie.php +4 -0
  37. lib/wp/class-groups-wordpress.php +4 -0
  38. readme.txt +8 -2
groups.php CHANGED
@@ -21,13 +21,13 @@
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
- * Version: 1.4.6.1
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
- define( 'GROUPS_CORE_VERSION', '1.4.6.1' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
+ * Version: 1.4.7
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
+ define( 'GROUPS_CORE_VERSION', '1.4.7' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
lib/access/class-groups-access-meta-boxes.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Adds meta boxes to edit screens.
24
  *
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Adds meta boxes to edit screens.
28
  *
lib/access/class-groups-access-shortcodes.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Shortcode handlers.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Shortcode handlers.
28
  */
lib/access/class-groups-post-access.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Post access restrictions.
24
  *
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Post access restrictions.
28
  *
lib/admin/class-groups-admin-post-columns.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.4.2
20
  */
21
 
 
 
 
 
22
  /**
23
  * Post column extensions.
24
  */
19
  * @since groups 1.4.2
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Post column extensions.
28
  */
lib/admin/class-groups-admin-posts.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.4.2
20
  */
21
 
 
 
 
 
22
  /**
23
  * Additions to post overview admin screens.
24
  */
19
  * @since groups 1.4.2
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Additions to post overview admin screens.
28
  */
lib/admin/class-groups-admin-user-profile.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.3.11
20
  */
21
 
 
 
 
 
22
  /**
23
  * Show group info on user profile pages and let admins edit group membership.
24
  */
19
  * @since groups 1.3.11
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Show group info on user profile pages and let admins edit group membership.
28
  */
lib/admin/class-groups-admin-users.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Users admin integration with Groups.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Users admin integration with Groups.
28
  */
lib/admin/class-groups-admin.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Groups admin sections initialization.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Groups admin sections initialization.
28
  */
lib/admin/groups-admin-capabilities-add.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Show add capability form.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Show add capability form.
28
  */
lib/admin/groups-admin-capabilities-edit.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Show edit capability form.
24
  * @param int $capability_id capability id
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Show edit capability form.
28
  * @param int $capability_id capability id
lib/admin/groups-admin-capabilities-remove.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Shows form to confirm capability deletion.
24
  * @param int $capability_id capability id
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Shows form to confirm capability deletion.
28
  * @param int $capability_id capability id
lib/admin/groups-admin-capabilities.php CHANGED
@@ -18,6 +18,11 @@
18
  * @package groups
19
  * @since groups 1.0.0
20
  */
 
 
 
 
 
21
  define( 'GROUPS_CAPABILITIES_PER_PAGE', 10 );
22
  define( 'GROUPS_ADMIN_CAPABILITIES_NONCE_1', 'groups-cap-nonce-1');
23
  define( 'GROUPS_ADMIN_CAPABILITIES_NONCE_2', 'groups-cap-nonce-2');
18
  * @package groups
19
  * @since groups 1.0.0
20
  */
21
+
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  define( 'GROUPS_CAPABILITIES_PER_PAGE', 10 );
27
  define( 'GROUPS_ADMIN_CAPABILITIES_NONCE_1', 'groups-cap-nonce-1');
28
  define( 'GROUPS_ADMIN_CAPABILITIES_NONCE_2', 'groups-cap-nonce-2');
lib/admin/groups-admin-groups-add.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.1.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Show add group form.
24
  */
19
  * @since groups 1.1.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Show add group form.
28
  */
lib/admin/groups-admin-groups-edit.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.1.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Show edit group form.
24
  * @param int $group_id group id
19
  * @since groups 1.1.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Show edit group form.
28
  * @param int $group_id group id
lib/admin/groups-admin-groups-remove.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.1.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Shows form to confirm removal of a group.
24
  * @param int $group_id group id
19
  * @since groups 1.1.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Shows form to confirm removal of a group.
28
  * @param int $group_id group id
lib/admin/groups-admin-groups.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  // admin defines
23
  define( 'GROUPS_GROUPS_PER_PAGE', 10 );
24
  define( 'GROUPS_ADMIN_GROUPS_NONCE_1', 'groups-nonce-1');
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  // admin defines
27
  define( 'GROUPS_GROUPS_PER_PAGE', 10 );
28
  define( 'GROUPS_ADMIN_GROUPS_NONCE_1', 'groups-nonce-1');
lib/admin/groups-admin-options.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * @var string options form nonce name
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * @var string options form nonce name
28
  */
lib/admin/groups-admin-tree-view.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Tree view : a simple tree view
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Tree view : a simple tree view
28
  */
lib/auto/class-groups-registered.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * "Registered" group automation.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * "Registered" group automation.
28
  */
lib/core/class-groups-capability.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Capability OPM
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Capability OPM
28
  */
lib/core/class-groups-controller.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Plugin controller
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Plugin controller
28
  */
lib/core/class-groups-group-capability.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Group Capability OPM
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Group Capability OPM
28
  */
lib/core/class-groups-group.php CHANGED
@@ -18,6 +18,11 @@
18
  * @package groups
19
  * @since groups 1.0.0
20
  */
 
 
 
 
 
21
  require_once( GROUPS_CORE_LIB . "/interface-i-capable.php" );
22
 
23
  /**
18
  * @package groups
19
  * @since groups 1.0.0
20
  */
21
+
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  require_once( GROUPS_CORE_LIB . "/interface-i-capable.php" );
27
 
28
  /**
lib/core/class-groups-help.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Help renderer.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Help renderer.
28
  */
lib/core/class-groups-options.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Groups options handler
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Groups options handler
28
  */
lib/core/class-groups-pagination.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Pagination based on WP_List_Table.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Pagination based on WP_List_Table.
28
  */
lib/core/class-groups-user-capability.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * User Capability OPM.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * User Capability OPM.
28
  */
lib/core/class-groups-user-group.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * User Group OPM.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * User Group OPM.
28
  */
lib/core/class-groups-user.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  require_once( GROUPS_CORE_LIB . "/interface-i-capable.php" );
23
  require_once( GROUPS_CORE_LIB . "/class-groups-capability.php" );
24
 
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  require_once( GROUPS_CORE_LIB . "/interface-i-capable.php" );
27
  require_once( GROUPS_CORE_LIB . "/class-groups-capability.php" );
28
 
lib/core/class-groups-utility.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Utility functions.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Utility functions.
28
  */
lib/core/constants.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * @var string plugin version dummy
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * @var string plugin version dummy
28
  */
lib/core/interface-i-capable.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Capable interface OPM.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Capable interface OPM.
28
  */
lib/core/wp-init.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  // startup
23
  global $groups_version, $groups_admin_messages;
24
 
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  // startup
27
  global $groups_version, $groups_admin_messages;
28
 
lib/views/class-groups-shortcodes.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * Shortcode handlers
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * Shortcode handlers
28
  */
lib/views/class-groups-uie.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.3.14
20
  */
21
 
 
 
 
 
22
  /**
23
  * User Interface Extensions.
24
  *
19
  * @since groups 1.3.14
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * User Interface Extensions.
28
  *
lib/wp/class-groups-wordpress.php CHANGED
@@ -19,6 +19,10 @@
19
  * @since groups 1.0.0
20
  */
21
 
 
 
 
 
22
  /**
23
  * WordPress capabilities integration.
24
  */
19
  * @since groups 1.0.0
20
  */
21
 
22
+ if ( !defined( 'ABSPATH' ) ) {
23
+ exit;
24
+ }
25
+
26
  /**
27
  * WordPress capabilities integration.
28
  */
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: itthinx
3
  Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, memberships, paypal, permission, permissions, subscription, subscriptions, woocommerce
5
  Requires at least: 3.5
6
- Tested up to: 3.8
7
- Stable tag: 1.4.6
8
  License: GPLv3
9
 
10
  Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.
@@ -177,6 +177,9 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
177
 
178
  == Changelog ==
179
 
 
 
 
180
  = 1.4.6.1 =
181
  * Fixed: Don't interfere with output when there is no post (the_content and get_the_excerpt filters)
182
 
@@ -370,6 +373,9 @@ Some installations wouldn't work correctly, showing no capabilities and making i
370
 
371
  == Upgrade Notice ==
372
 
 
 
 
373
  = 1.4.6 =
374
  * Security fix : Certain capabilities could be granted to users instead of being denied with a change introduced in version 1.4.5.
375
 
3
  Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, memberships, paypal, permission, permissions, subscription, subscriptions, woocommerce
5
  Requires at least: 3.5
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.4.7
8
  License: GPLv3
9
 
10
  Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.
177
 
178
  == Changelog ==
179
 
180
+ = 1.4.7 =
181
+ * Security improvement: plugin files accessed directly exit
182
+
183
  = 1.4.6.1 =
184
  * Fixed: Don't interfere with output when there is no post (the_content and get_the_excerpt filters)
185
 
373
 
374
  == Upgrade Notice ==
375
 
376
+ = 1.4.7 =
377
+ * This update provides a low-priority security improvement and a fix related to output obtained through the_content and get_the_excerpt filters.
378
+
379
  = 1.4.6 =
380
  * Security fix : Certain capabilities could be granted to users instead of being denied with a change introduced in version 1.4.5.
381
Â