Version Description
- Added the groups_access_restrictions_capability_selected filter.
Download this release
Release Info
Developer | itthinx |
Plugin | Groups |
Version | 1.10.3 |
Comparing to | |
See all releases |
Code changes from version 1.10.2 to 1.10.3
- groups.php +2 -2
- lib/access/class-groups-access-meta-boxes.php +11 -1
- readme.txt +7 -5
groups.php
CHANGED
@@ -21,7 +21,7 @@
|
|
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.10.
|
25 |
* Author: itthinx
|
26 |
* Author URI: http://www.itthinx.com
|
27 |
* Donate-Link: http://www.itthinx.com
|
@@ -30,7 +30,7 @@
|
|
30 |
if ( !defined( 'ABSPATH' ) ) {
|
31 |
exit;
|
32 |
}
|
33 |
-
define( 'GROUPS_CORE_VERSION', '1.10.
|
34 |
define( 'GROUPS_FILE', __FILE__ );
|
35 |
if ( !defined( 'GROUPS_CORE_DIR' ) ) {
|
36 |
define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
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.10.3
|
25 |
* Author: itthinx
|
26 |
* Author URI: http://www.itthinx.com
|
27 |
* Donate-Link: http://www.itthinx.com
|
30 |
if ( !defined( 'ABSPATH' ) ) {
|
31 |
exit;
|
32 |
}
|
33 |
+
define( 'GROUPS_CORE_VERSION', '1.10.3' );
|
34 |
define( 'GROUPS_FILE', __FILE__ );
|
35 |
if ( !defined( 'GROUPS_CORE_DIR' ) ) {
|
36 |
define( 'GROUPS_CORE_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
lib/access/class-groups-access-meta-boxes.php
CHANGED
@@ -237,7 +237,17 @@ class Groups_Access_Meta_Boxes {
|
|
237 |
} else {
|
238 |
$label_title = __( 'No groups grant access through this capability. To grant access to group members using this capability, you should assign it to a group and enable the capability for access restriction.', GROUPS_PLUGIN_DOMAIN );
|
239 |
}
|
240 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
$output .= wp_filter_nohtml_kses( $capability->capability );
|
242 |
if ( $show_groups ) {
|
243 |
if ( count( $group_names ) > 0 ) {
|
237 |
} else {
|
238 |
$label_title = __( 'No groups grant access through this capability. To grant access to group members using this capability, you should assign it to a group and enable the capability for access restriction.', GROUPS_PLUGIN_DOMAIN );
|
239 |
}
|
240 |
+
|
241 |
+
$selected = apply_filters(
|
242 |
+
'groups_access_restrictions_capability_selected',
|
243 |
+
in_array( $capability->capability, $read_caps ),
|
244 |
+
$capability->capability,
|
245 |
+
$capability->capability_id,
|
246 |
+
$read_caps,
|
247 |
+
$post_id,
|
248 |
+
$post_type
|
249 |
+
);
|
250 |
+
$output .= sprintf( '<option value="%s" %s>', esc_attr( $capability->capability_id ), $selected ? ' selected="selected" ': '' );
|
251 |
$output .= wp_filter_nohtml_kses( $capability->capability );
|
252 |
if ( $show_groups ) {
|
253 |
if ( count( $group_names ) > 0 ) {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: itthinx, proaktion
|
|
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: 4.0
|
6 |
-
Tested up to: 4.5
|
7 |
-
Stable tag: 1.10.
|
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.
|
@@ -181,6 +181,9 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
|
|
181 |
|
182 |
== Changelog ==
|
183 |
|
|
|
|
|
|
|
184 |
= 1.10.2 =
|
185 |
* Tested for WordPress 4.5.
|
186 |
|
@@ -526,6 +529,5 @@ Some installations wouldn't work correctly, showing no capabilities and making i
|
|
526 |
|
527 |
== Upgrade Notice ==
|
528 |
|
529 |
-
= 1.10.
|
530 |
-
|
531 |
-
|
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: 4.0
|
6 |
+
Tested up to: 4.5.2
|
7 |
+
Stable tag: 1.10.3
|
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.
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 1.10.3 =
|
185 |
+
* Added the groups_access_restrictions_capability_selected filter.
|
186 |
+
|
187 |
= 1.10.2 =
|
188 |
* Tested for WordPress 4.5.
|
189 |
|
529 |
|
530 |
== Upgrade Notice ==
|
531 |
|
532 |
+
= 1.10.3 =
|
533 |
+
This release adds a filter which can be used to modify selected access restriction capabilities.
|
|