Version Description
- Security improvement: plugin files accessed directly exit
Download this release
Release Info
Developer | itthinx |
Plugin | Groups |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.6.1 to 1.4.7
- groups.php +2 -2
- lib/access/class-groups-access-meta-boxes.php +4 -0
- lib/access/class-groups-access-shortcodes.php +4 -0
- lib/access/class-groups-post-access.php +4 -0
- lib/admin/class-groups-admin-post-columns.php +4 -0
- lib/admin/class-groups-admin-posts.php +4 -0
- lib/admin/class-groups-admin-user-profile.php +4 -0
- lib/admin/class-groups-admin-users.php +4 -0
- lib/admin/class-groups-admin.php +4 -0
- lib/admin/groups-admin-capabilities-add.php +4 -0
- lib/admin/groups-admin-capabilities-edit.php +4 -0
- lib/admin/groups-admin-capabilities-remove.php +4 -0
- lib/admin/groups-admin-capabilities.php +5 -0
- lib/admin/groups-admin-groups-add.php +4 -0
- lib/admin/groups-admin-groups-edit.php +4 -0
- lib/admin/groups-admin-groups-remove.php +4 -0
- lib/admin/groups-admin-groups.php +4 -0
- lib/admin/groups-admin-options.php +4 -0
- lib/admin/groups-admin-tree-view.php +4 -0
- lib/auto/class-groups-registered.php +4 -0
- lib/core/class-groups-capability.php +4 -0
- lib/core/class-groups-controller.php +4 -0
- lib/core/class-groups-group-capability.php +4 -0
- lib/core/class-groups-group.php +5 -0
- lib/core/class-groups-help.php +4 -0
- lib/core/class-groups-options.php +4 -0
- lib/core/class-groups-pagination.php +4 -0
- lib/core/class-groups-user-capability.php +4 -0
- lib/core/class-groups-user-group.php +4 -0
- lib/core/class-groups-user.php +4 -0
- lib/core/class-groups-utility.php +4 -0
- lib/core/constants.php +4 -0
- lib/core/interface-i-capable.php +4 -0
- lib/core/wp-init.php +4 -0
- lib/views/class-groups-shortcodes.php +4 -0
- lib/views/class-groups-uie.php +4 -0
- lib/wp/class-groups-wordpress.php +4 -0
- 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.
|
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.
|
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.
|
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 |
Â
|